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 do you sort filenames in a directory?
how can I convert a string to a number?
Explain what is the difference between functions abs() and fabs()?
When should you not use a type cast?
What is the difference between malloc() and calloc()?
Why do some versions of toupper act strangely if given an upper-case letter?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
How will you divide two numbers in a MACRO?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
Explain what are global variables and explain how do you declare them?
What is 1d array in c?
Give the rules for variable declaration?
What are pointers really good for, anyway?
What is a function in c?