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


Please Help Members By Posting Answers For Below Questions

will u please send me the placement papers to my mail???????????????????

1355


What does volatile do?

554


Explain how can you be sure that a program follows the ansi c standard?

852


What is hash table in c?

560


What is c basic?

589






What does void main () mean?

715


What is the use of function overloading in C?

663


What is the difference between #include and #include 'file' ?

598


What is the deal on sprintf_s return value?

631


What are disadvantages of C language.

638


Stimulate calculator using Switch-case-default statement for two numbers

2436


What is meant by high-order and low-order bytes?

640


Why c language?

633


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2163


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

656