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 program counter is 16 bit?
Ca some one please help me with aC code to allow user enter numbers from 1 to 20 without repeating and prnt the sum of those numbers thnx
Are there any problems with performing mathematical operations on different variable types?
Explain heap and queue.
what is the use of operator ^ in C ? and how it works?
tell me the full form of c?
What are nested functions in c?
Which sorting algorithm is the best?
differnce between do and do while
Why c is a procedural language?
Write a program to check armstrong number in c?
Explain what is the use of a semicolon (;) at the end of every program statement?