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
What functions are used in dynamic memory allocation in c?
can anyone suggest some site name..where i can get some good data structure puzzles???
Is c call by value?
What does #pragma once mean?
Explain threaded binary trees?
What is the difference between null pointer and wild pointer?
What are two dimensional arrays alternatively called as?
Explain the difference between structs and unions in c?
What is the return type of sizeof?
What type of function is main ()?
Why enum is used in c?
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
What is extern keyword in c?
What is extern c used for?
Explain a pre-processor and its advantages.