Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54544 54554 45545 45445 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 2 0 0 0 0 2 1 0 0 1 3 1 0 0 1 3 0 TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.#include<stdio.h>void main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);} Compilation error 12 11 13 14 TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following statements?for(i=10; i++; i<15) printf("%d ", i); Infinite loop 10 11 12 13 14 15 10 11 12 13 14 9 10 11 12 13 None of these TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following function is more appropriate for reading in a multi-word string? printf() scanf() puts() None of these gets() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 4 3 2 1 Infinite Loop None of these Compilation Error 5 5 5 5 5 TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k);} 1 1 2 3 0 1 2 2 1 1 2 2 None of these 0 1 2 3 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char not; not = !2; printf("%d", not);} Garbage Value 2 None of These 0 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int c = - -2; printf("c=%d", c);} 2 -2 1 Error TRUE ANSWER : ? YOUR ANSWER : ?