Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }} Infinite Loop 5 4 3 2 1 None of These 0 0 0 0 TRUE ANSWER : ? YOUR ANSWER : ?
Which operator from the following has the lowest priority? Conditional operator Comma operator Assignment operator Division operator Unary-operator 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 7 8 5 6 TRUE ANSWER : ? YOUR ANSWER : ?
What is the maximum number of dimensions an array in C may have? 2 8 Theoratically no limit. The only practical limits are memory size and compilers. 50 20 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } XAM is printed Compiler Error exam is printed Nothing is printed TRUE ANSWER : ? YOUR ANSWER : ?
Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 4, c = 8 b = 3, c = 6 a = 4, c = 6 b = 4, c = 6 a = 3, c = 8 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is not a reserved keyword for C? case default register auto main TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#include<stdio.h>void main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} None of These hello garbage value hello 5 Error TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following program?#include<stdio.h>int c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 20 25 None of these 30 24 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is correct way to define the function fun() in the below program?#include<stdio.h>void main(){ int a[3][4]; fun(a);} void fun(int p[][4]){} void fun(int *p[3][4]){} void fun(int *p[][4]){} None of these void fun(int *p[4]){} TRUE ANSWER : ? YOUR ANSWER : ?