What will be the output of the following program
#include<stdio.h>
void main()
{
int i=20;
i-=i+++++i++;
printf("%d",i);
}
Answer Posted / shajitha
Answer will be 42.
i++ =20
i+++=20+
i+++++i=20+22
i+++++i++=42
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
Tell me with an example the self-referential structure?
What is the difference between text files and binary files?
Is register a keyword in c?
Explain what will the preprocessor do for a program?
What is a structure and why it is used?
Is multithreading possible in c?
What is the use of typedef in structure in c?
what will be the output for the following main() { printf("hi" "hello"); }
In which language linux is written?
Why is c still so popular?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is use of null pointer in c?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What is the method to save data in stack data structure type?
What is the mean of function?