Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 we define two jobs have same name??is it exist??

0 Answers   CTS,


pleasew define carrier scope in abap (sap).

0 Answers  


if try is followed by finally block what happen to exception occured in try block

3 Answers   Professional Access,


What is the difference between CriteriaQuery and CreateQuery in Hibernate???? Thanks in advance!!!!!!

1 Answers   Accenture,


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

0 Answers  


Explain polymorphism. Provide an example.

0 Answers   Amazon,


When will you use shell script/Perl ahead of C/C++?

0 Answers   Yahoo,


if heap sort contains n elements, no of comparsions required are

2 Answers   Hughes,


Who is the Best SAS/Clinical Trainer in Hyderabad

1 Answers  


how to avoid java script validation in client side validation?

2 Answers  


How to find out the user exit for va01.

1 Answers  


4. What is the need of START 0? Instead if can we use any other numeric? If we use what will happen?

0 Answers   TCS,


Categories