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 |
How can I implement sets or arrays of bits?
Explain what header files do I need in order to define the standard library functions I use?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
How many main () function we can have in a project?
What are # preprocessor operator in c?
which is the best site or book for learning C...and i need the content for C..how to get the good programming skills....? can plz suggest me....
What is C language ?
How can a program be made to print the name of a source file where an error occurs?
please give code for this 1 2 4 7 11 16
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
List some of the static data structures in C?
What is ctrl c called?