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
but when we compile this code in editor it shows the output
22 21 21 20 .
whts wrong then ?
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
Explain union.
What are the two types of functions in c?
What will be the outcome of the following conditional statement if the value of variable s is 10?
How do you redirect a standard stream?
What is meant by initialization and how we initialize a variable?
What is the difference between array and pointer in c?
What is the purpose of macro in C language?
Mention four important string handling functions in c languages .
What does %2f mean in c?
How do you initialize pointer variables?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
What is f'n in math?
Is c procedural or functional?
Is c dynamically typed?
Why array is used in c?