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 functions are used in dynamic memory allocation in c?

599


can anyone suggest some site name..where i can get some good data structure puzzles???

1647


Is c call by value?

613


What does #pragma once mean?

693


Explain threaded binary trees?

684






What is the difference between null pointer and wild pointer?

644


What are two dimensional arrays alternatively called as?

668


Explain the difference between structs and unions in c?

580


What is the return type of sizeof?

599


What type of function is main ()?

594


Why enum is used in c?

531


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1416


What is extern keyword in c?

648


What is extern c used for?

571


Explain a pre-processor and its advantages.

637