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;
    }

No comments:

Post a Comment