Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Expressions
What will be the output of the program? #include
int main() { int i=3; i = i++; printf("%d\n", i); return 0; }
3
4
5
6
Correct Answer:
4
← Previous Question
Next Question→
More Questions from
Expressions
What will be the output of the program? #include
int main() { int x=55; printf("%d, %d, %d\n", x<=55, x=40, x>=10); return 0; }
What will be the output of the program? #include
int main() { int a=100, b=200, c; c = (a == 100 || b > 200); printf("c=%d\n", c); return 0; }
What will be the output of the program? #include
int main() { int i=-3, j=2, k=0, m; m = ++i && ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; }
What will be the output of the program? #include
int main() { int i=2; printf("%d, %d\n", ++i, ++i); return 0; }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments