C Programming Determine Output:void main(){ int i; char a[]="�"; if(printf("%sn", a)) printf("Ok here n"); else printf("Forget itn");} Ok here Forget it Error None of These Ok here Forget it Error None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. II and IV I and III I and II III and IV II and III II and IV I and III I and II III and IV II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct statement.I. The scope of a macro definition need not be the entire program.II. The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV. A macro definition may go beyond a line. II, III and IV II and III I and II I, II, III and IV I, II and III II, III and IV II and III I and II I, II, III and IV I, II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} Error garbage values 0 0 0 1 1 1 Error garbage values 0 0 0 1 1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:#include void main(){ char *p = NULL; char *q = 0; if(p) printf(" p "); else printf("nullp"); if(q) printf("q"); else printf(" nullq");} nullp nullq Depends on the compiler x nullq where x can be p or nullp depending on the value of NULL p q nullp nullq Depends on the compiler x nullq where x can be p or nullp depending on the value of NULL p q ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 15 10 30 -5 1 15 10 30 -5 1 ANSWER DOWNLOAD EXAMIANS APP