Bit-wise Right Shift Operator


#include<iostream.h>
    void main ()
    {
        int a = 63 ;

        cout<<"a="<<a<<endl;

        a = a >> 4 ;
        cout<< "Value of a,right-shifted 4 times = "<< a;
    }

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|