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
When should volatile modifier be used?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is #line in c?
What are types of functions?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
Explain 'bus error'?
What is use of bit field?
explain what are pointers?
How does free() know explain how much memory to release?
Is main an identifier in c?
Explain how to reverse singly link list.
Suggesting that there can be 62 seconds in a minute?
Why void main is used in c?
What is default value of global variable in c?