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 / pratik
i am agree with yognesh , ,
when u compile this is C it gives 22 21 21 20 . .
check it out ..
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Explain void pointer?
What is multidimensional arrays
Can we use visual studio for c?
Is c dynamically typed?
Why c is a mother language?
Are c and c++ the same?
Does sprintf put null character?
Write a program to swap two numbers without using third variable?
What are the types of arrays in c?
What is operator precedence?
What is sizeof int in c?
Is c object oriented?
What does double pointer mean in c?
What is the size of a union variable?