what is output of the following statetment?Printf(“%x”,
-1<<4); ?
Answer Posted / sasmita lenka
Answer fff0.........As -1 is internally represented as as
all 1's.When left shifted four times the least significant 4
bits are filled with 0's.The %x format specifier specifies
that the integer value be printed as a hexadecimal value.
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
How do I use void main?
What are the advantages of union?
Is c call by value?
What are unions in c?
What is wrong with this declaration?
code for quick sort?
How do c compilers work?
Differentiate between declaring a variable and defining a variable?
What is #include conio h?
What functions are in conio h?
Explain what is the benefit of using enum to declare a constant?
Why void is used in c?
What is getche() function?
What does it mean when the linker says that _end is undefined?
What is static memory allocation? Explain