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
How can I generate floating-point random numbers?
What is difference between union All statement and Union?
For what purpose null pointer used?
What is data structure in c language?
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
Difference between linking and loading?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is a stream in c programming?
What are the Advantages of using macro
How many levels of pointers have?
What is typedf?
What is the use of clrscr?
What is the concatenation operator?
Multiply an Integer Number by 2 Without Using Multiplication Operator