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

hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern

1534


Is class is a abstract datatype in java?

1455


what is delegate and delegation model give the real live example on delegate model

2821


Hello Experts, What is the difference between move and move corresponding exactly? please post me asap

1341


hoe to data grid use in sql server 2000?

1605






What is diffrent between Method and and function in c#

1537


Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage

1530


how to convert infix expression to prefix expression?

3829


code for connection from windows forms to sql server

1715


sample and simple coding where we get?

1785


9.Difference between even and odd signals?explain with the diagram?

2968


how to work search engine? plz detail answer me.

1491


Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..

1654


5. Which of the following can you do with DB2 Express- C? Query databases with SQL Query databases with XML using XQuery and XPath Use SQL in Xquery and Xquery in SQL All of the above

2130


Suppose server object is not loaded into the memory, and the client request for it , what will happen?

2175