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 / prats
its stack operation . .
top will get printed first . .
answer will b 22 21 21 20
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Is it fine to write void main () or main () in c?
Explain how can you restore a redirected standard stream?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is sizeof array?
If I have a char * variable pointing to the name of a function ..
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What are the types of unary operators?
Explain what are the different file extensions involved when programming in c?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
How to get string length of given string in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What are the different types of control structures in programming?
What is memcpy() function?
What is unsigned int in c?
Under what circumstances does a name clash occur?