What is the output of following program ?
int
main()
{
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
}
Answer Posted / shubham
5
5>>2=1(0000101=>00000001)
5<<2=20(0000101=>10100)
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is return in c programming?
Explain function?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
How was c created?
What is indirection in c?
Does sprintf put null character?
Between macros and functions,which is better to use and why?
What is const volatile variable in c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is main return c?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Explain what are the standard predefined macros?
What is typedef?
What are the advantages of c language?