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



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

Answer / 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

More Programming Languages AllOther Interview Questions

what is difference between input parameter and output parameter.

0 Answers   NIIT,


how to convert infix expression to prefix expression?

0 Answers   nvidia,


can any one suggestion me present which course(except java,.net) has huge demand in the market?

0 Answers  


Data Structure:  How many comparisons are necessary to find the largest and smallest of a set of n distinct elements?  

0 Answers   Student,


what is the diffrence between occur 0 and occur 10 in ABAP.

0 Answers  






Write a program to implement BFS/ DFS routine in a connected graph

1 Answers  


what is log files in qtp what is use

0 Answers   HSBC,


What Is The Difeerence Between C & C++

2 Answers   HCL,


What do you meant by Runtime Polymorphism?

2 Answers   Persistent,


what is mutex?

4 Answers   Axiom, Blue Star, SQL Star,


write a sql qwery which include joining of two tables 4 marks mainframe

0 Answers  


What is dialog programming?

0 Answers  


Categories