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 are examples of structures?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Can we change the value of constant variable in c?
What is wrong with this initialization?
What is sizeof int in c?
Why c is called procedure oriented language?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What does struct node * mean?
What is build process in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
How can you find out how much memory is available?
What is difference between && and & in c?
What is structure data type in c?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.