what is output of the following statetment?Printf(“%x”,
-1<<4); ?

Answer Posted / ankurmohansharma

In case of 16- bit compiler answer will be fff0
In case of 32-bit compiler answer will be fffffff0.

Reason being same as of above two

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I make sure that my program is the only one accessing a file?

645


What does the file stdio.h contain?

582


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

709


What is a floating point in c?

576


How can I determine whether a machines byte order is big-endian or little-endian?

590






Which header file should you include if you are to develop a function which can accept variable number of arguments?

771


how can f be used for both float and double arguments in printf? Are not they different types?

584


What is a char c?

565


What is the return type of sizeof?

566


What is data structure in c programming?

549


Can include files be nested?

608


Is stack a keyword in c?

607


Add Two Numbers Without Using the Addition Operator

329


How can you increase the size of a statically allocated array?

583


Explain continue keyword in c

554