Code:
cout << 30 << 3 ;
What operator "<<" is that ? i mean the one in between 30 and 3...
and what is the difference between "<", "<<", ">", ">>" ?
thx in advance...
int f()
{ int a =10,b=10;
if(a==b)
{
a*=3;
}
a = a << 2;
return a;
}
void main()
{cout<<f();}
128 64 32 16 8 4 2 1 ------------------------------------ 0 1 1 1 1 0 0 0 0 +64+32+16 + 8+0+0+0 = 120
128 64 32 16 8 4 2 1 ------------------------------------ 0 1 1 1 1 0 0 0 0 +64+32+16 + 8+0+0+0 = 120
a = a < 3;
a = a < 3;
Comment