7.x=10;
y=20;
x<<2=?
x<<1=?
y>>2=?

Answer Posted / veerendra kumar

here << means shiftleft operation,>> means shiftright
operations x<<2 means 10<<2--->00001010<<2 take 8 binary
format.shiftleft means moving two places from leftmost to
rightmost i.e 00101000(40 will come),same like that x<<1
means 10<<1--->00001010<<1 after moving 00010100 answear
is:20,y>>2--->00010100>>2 after shiftright operation
00000101 answear is:5

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I am work in it aompenei

965


What is ur porject Architecture? If anyone ask what i have to specify here..

1483


MOV.CB 007H,ADCON1 MOVE.CT 001H,_OPTION_REG_7 MOV.CB 007H,CMCON

1621


what is radio button? Plz show code this! how will select radio buttons to go next window Forms? Supose o radio button1 o radio button2 o radio button3 o radio button4 how will coding this? Plz explain this!

2899


Differevce between arrays and array builders?

1636






Can any one give an example (Source Code) on virtual function implemetation in Java?

1495


3 members in a pf.how we read 3 members without using ovrdbf.using rg pgms....

1663


How to know we are in home page of a web application using QTP

1997


In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..

987


give idea for creating screen in abap

1636


in cobol,wat is the difference in using 'set index in occurs clause' ....and 'occurs depending-on clause'

1767


What is the entry point function of a DLL?

615


How to call a C++ function which is compiled with C++ compiler in C code?

788


What is the purpose of element of in Ajax

2009


What do you understand by modular programming?

670