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
What is a nested formula?
Can you add pointers together? Why would you?
How to write a code for reverse of string without using string functions?
If fflush wont work, what can I use to flush input?
What is null in c?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
What are the different data types in C?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Is there any data type in c with variable size?
Can a program have two main functions?
When should volatile modifier be used?
What is ambagious result in C? explain with an example.
How many data structures are there in c?