Determine output:void main(){ int i=10; i = !i>14; printf("i=%d", i); } None of these 10 1 14 0 TRUE ANSWER : ? YOUR ANSWER : ?
The declarationint (*p) [5];means None of these. The same as int *p[ p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 5 5 2 4 5 2 4 4 8 5 5 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));} 10 12 15 11 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54544 45545 55445 54554 TRUE ANSWER : ? YOUR ANSWER : ?
Choose the best answer.Prior to using a pointer variable It should be declared. It should be initialized. None of these. It should be both declared and initialized. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int c = - -2; printf("c=%d", c);} 1 Error -2 2 TRUE ANSWER : ? YOUR ANSWER : ?
What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 9 6 8 7 5 TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following statements?int i = 0;printf("%d %d", i, i++); None of these 1 0 0 0 1 1 0 1 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }} 4 5 6 7 8 9 10 None of these 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 1 2 3 10 TRUE ANSWER : ? YOUR ANSWER : ?