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

How can I generate floating-point random numbers?

613


What is difference between union All statement and Union?

630


For what purpose null pointer used?

609


What is data structure in c language?

610


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

671






Difference between linking and loading?

697


Write a code to determine the total number of stops an elevator would take to serve N number of people.

735


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

1631


What is a stream in c programming?

598


What are the Advantages of using macro

688


How many levels of pointers have?

597


What is typedf?

674


What is the use of clrscr?

602


What is the concatenation operator?

614


Multiply an Integer Number by 2 Without Using Multiplication Operator

326