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

how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out

1 Answers  


THERE ARE 4 SOURCE FILES WHICH CONTAINS SAME METADATA CREATE A TARGET THAT SHOULD DISPLAY THE FILE NAME ALONG WITH THE RECORD PLEASE SEND THE ANSWERFOR THIS QUESTION WITH MAPPING

1 Answers   Wipro,


Please describe an example where you used object orientation in one of your programs.

1 Answers  


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

1 Answers  


What are events in smartforms?

1 Answers   Accenture,


When you deliver your C++ headers and C++ library of a class (what all can you change in the class so that application using your class does not need to recompile the code)

1 Answers   Yahoo,


Write a shell program to test whether a given year is leap year or not ?

1 Answers   Patni,


Write a pascal program to calculate the sum of the first 100 even number and odd number

1 Answers  


Q2. A memory location has physical address D5687h. Compute: a. The offset address if the segment number is D445h. b. The segment number if the offset address is B577h.

1 Answers  


the systematic access of small computers in a distributed data processing system is referred as?

1 Answers   Mphasis,


How can we alter the data after creating a view

1 Answers  


A, B and C are 8 bit nos. They are as follows: A 1 1 0 1 1 0 1 1 B 0 1 1 1 1 0 1 0 C 0 1 1 0 1 1 0 1 Find ( (A-B) u C )=? how to solve this need with steps

5 Answers   TCS,


Categories