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=?

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

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

2162


Code for display the images from drive using vb 6.0?

5124


what are the things i had to say in personal introduction in hr round mail me to prasanna.1867@rediff.com

2074


what are all the validation we need to perform in data stage?

2356


what are stubs related to foxpro?

2050


Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension.

1057


how to generate dsnless connectivity in j2ee

1975


iam confused among testing ,.net and java. can anybody help me.

1959


what is best way to create a Thread class & why?

2099


through which algorithm does the garbage collector works? how the garbage collector will understand that the object will going to be deleted?

2478


What is the difference beween joblib and steplib statements

2217


Given an array all of whose elements are positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)

1130


Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in

1988


What's the difference b/w Table & Templete in Smartform?

2163


what does mean and stack mean in genral programming?

1854