What is the output of following program ?
int
main()
{
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
}
Answer Posted / vignesh1988i
4 4 1 is the output....
here the operation of STACK involves.... for these kind of statements (ie) statements having multiple values to get printed it is used..... so the very first element that goes inside stack is x , then x<<2 , then x>>2... so from the TOP it will be operated....
and print as the order given in printf statement..... :)
thank u
Is This Answer Correct ? | 6 Yes | 16 No |
Post New Answer View All Answers
What is the difference between far and near in c?
Explain Function Pointer?
What is pointer and structure in c?
How do you determine a file’s attributes?
Which is better between malloc and calloc?
What are the different properties of variable number of arguments?
What is the use of pointers in C?
What is getch () for?
List some of the static data structures in C?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
Explain how can you determine the size of an allocated portion of memory?
What is the mean of function?
Describe wild pointers in c?
How do you list a file’s date and time?
How is = symbol different from == symbol in c programming?