# include <iostream.h>
void main ()
{
int a = 10 , b = -10 ;
cout<<"a = "<<a<<endl ;
a = a << 3 ;
cout <<"Value of a,left-shifted 3 times = "<<a<<endl ;
cout <<"b = " <<b<<endl;
b = b << 2 ;
cout <<"Value of b,left-shifted 2 times = "<<b<<endl;
}
Labels: C++ Basic Codes, C++ Codes
Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies| |
---|
0 comments:
Post a Comment