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 language is lisp written in?
Do you know pointer in c?
Explain the use of keyword 'register' with respect to variables.
What does 3 mean in texting?
Explain why C language is procedural?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is the purpose of realloc()?
Why does notstrcat(string, "!");Work?
what is event driven software and what is procedural driven software?
What is the explanation for cyclic nature of data types in c?
Write a program with dynamically allocation of variable.
What is this pointer in c plus plus?
What is header file definition?
Why c is known as a mother language?
Where we use clrscr in c?