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();
}
Answers were Sorted based on User's Feedback
Answer / 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 |
Why the use of alloca() is discouraged?
How can I allocate arrays or structures bigger than 64K?
how to introdu5ce my self in serco
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
please tell me the logic for this C program : INPUT (string):ABCD OUTPUT :BCDA CDAB DABC
How can you draw circles in C?
Explain how do you override a defined macro?
what are the advantage of pointer variables? write a program to count the number of vowels and consonants in a given string
How can I call a function, given its name as a string?
Is c procedural or object oriented?
In C, What is the #line used for?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question