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
Simplify the program segment if X = B then C ← true else C ← false
find out largest elemant of diagonalmatrix
Compare array data type to pointer data type
write a program in c language to print your bio-data on the screen by using functions.
Why is it that not all header files are declared in every C program?
What are control structures? What are the different types?
When should the const modifier be used?
When a c file is executed there are many files that are automatically opened what are they files?
How do you view the path?
Whats s or c mean?
What are dangling pointers in c?
Why does everyone say not to use gets?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
Describe explain how arrays can be passed to a user defined function
How we can insert comments in a c program?