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

it is a language or tools?

1719


Difference between views and index in sas programming

1124


what are the missinschema properties and should we pass primary key in select command

1516


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

1697


What is the Difference between in memory database and physical database

2191






what are the advantages of sap on other software ?

1822


what are resources in case of Threads

1765


how pseudo column works?

1823


how to stop execution of step 3 in a job mainframe

1803


Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad

1951


difference between mantis and other tools?

1691


Explain with examples any 2 features of OOPS.

750


why we use mantis? what u mean mantis in IT trends? addvantages of mantis?

1842


when will triggars the at new event in abap and web dybn pro?

1601


code for connection from windows forms to sql server

1802