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
Does c have enums?
What is union and structure in c?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Explain what are the __date__ and __time__ preprocessor commands?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
What are the differences between Structures and Arrays?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Is there any demerits of using pointer?
Which of these functions is safer to use : fgets(), gets()? Why?
Why cant I open a file by its explicit path?
Can a void pointer point to a function?
How can my program discover the complete pathname to the executable from which it was invoked?
What is floating point constants?
How do you print only part of a string?