WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW
IT COME ..
#include<stdio.h>
#include<conio.h>
void main()
{
int k=20;
printf("%d%d%d%d",k,k++,++k,k);
getch();
}
Answer Posted / vignesh1988i
22 21 21 20 THIS WILL THE OUTPUT..
this is merely an STACK operation.... here we have 4
parameters.. so the four parameters will be pushed inside
the stack one by one... as
TOP : k
++k
k++
BOTTOM : k
so the expressions will be evaluated from the top.. and thus
the answer....
thank u
Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is else if ladder?
What are logical errors and how does it differ from syntax errors?
Differentiate call by value and call by reference?
What are different storage class specifiers in c?
What is chain pointer in c?
What is the value of h?
What is adt in c programming?
What’s a signal? Explain what do I use signals for?
What is return in c programming?
Explain what is the difference between functions getch() and getche()?
Can we change the value of #define in c?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is a const pointer?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is struct node in c?