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 is unsigned int in c?
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
What are the key features in c programming language?
Tell me what are bitwise shift operators?
What is the difference between break and continue?
Is printf a keyword?
What do the functions atoi(), itoa() and gcvt() do?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Define C in your own Language.
Explain a pre-processor and its advantages.
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What are global variables?
Why & is used in c?
How can I invoke another program or command and trap its output?
How will you declare an array of three function pointers where each function receives two ints and returns a float?