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
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What do you understand by friend-functions? How are they used?
Do you know the use of 'auto' keyword?
What is the equivalent code of the following statement in WHILE LOOP format?
What is the difference between %d and %i?
What is the difference between int main and void main?
What is the difference between exit() and _exit() function in c?
Is a house a shell structure?
Are pointers integer?
How can I discover how many arguments a function was actually called with?
Explain low-order bytes.
How are 16- and 32-bit numbers stored?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Explain how do you use a pointer to a function?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same