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...

what is output of the following statetment?Printf(“%x”,
-1<<4); ?

Answer Posted / vignesh1988i

here the equivalent representation for -1 in memory is it's
two's compliment notation..... so alll the 16 bits will be
HIGH (1).... so four time we are moving the bits left
side.... so after that it will result as 65520.... the
equivalent HEX value for 65520 will get printed.........



thank u

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unsigned int in c?

1058


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

1208


What are the key features in c programming language?

1128


Tell me what are bitwise shift operators?

1178


What is the difference between break and continue?

1689


Is printf a keyword?

1261


What do the functions atoi(), itoa() and gcvt() do?

1249


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1109


Define C in your own Language.

1135


Explain a pre-processor and its advantages.

1194


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1258


What are global variables?

1269


Why & is used in c?

1253


How can I invoke another program or command and trap its output?

1157


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1431