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 break statement?
Write a program to print “hello world” without using semicolon?
What 'lex' does?
How do I determine whether a character is numeric, alphabetic, and so on?
Tell us two differences between new () and malloc ()?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What are the types of c language?
By using C language input a date into it and if it is right?
When is the “void” keyword used in a function?
Write a code of a general series where the next element is the sum of last k terms.
How is a null pointer different from a dangling pointer?
What are the different types of C instructions?
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?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.