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


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

588


What do you understand by friend-functions? How are they used?

633


Do you know the use of 'auto' keyword?

647


What is the equivalent code of the following statement in WHILE LOOP format?

752


What is the difference between %d and %i?

578






What is the difference between int main and void main?

562


What is the difference between exit() and _exit() function in c?

566


Is a house a shell structure?

683


Are pointers integer?

539


How can I discover how many arguments a function was actually called with?

622


Explain low-order bytes.

614


How are 16- and 32-bit numbers stored?

703


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1775


Explain how do you use a pointer to a function?

626


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

643