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 / vishwanath pillay
The answer will be :-
20, 21, 21, 21
At the start the value is initialized to 20.
since the line:-
printf("%d%d%d%d",k,k++,++k,k);
Answer:-- 20, 21, 21, 21
| Is This Answer Correct ? | 0 Yes | 11 No |
Post New Answer View All Answers
What is the function of this pointer?
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 is meant by recursion?
Why is c platform dependent?
What is derived datatype in c?
What is the difference between ++a and a++?
What is the difference between scanf and fscanf?
What is the scope of global variable in c?
Explain how do you sort filenames in a directory?
Is it better to use a macro or a function?
What is modifier & how many types of modifiers available in c?
What is main function in c?
Can two or more operators such as and be combined in a single line of program code?
What is function pointer c?
What is the best way to store flag values in a program?