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
What is character set?
please give me some tips for the placement in the TCS.
List out few of the applications that make use of Multilinked Structures?
What is difference between class and structure?
Explain the term printf() and scanf() used in c language?
Is array name a pointer?
Can you mix old-style and new-style function syntax?
What are the keywords in c?
What does %2f mean in c?
What are extern variables in c?
What's a good way to check for "close enough" floating-point equality?
What are the 4 types of unions?
What is a pointer on a pointer in c programming language?
Why do we use int main instead of void main in c?
What are local static variables?