A preprocessor command need not start on a new line need not start on the first column has # as the first character comes before the first executable statement TRUE ANSWER : ? YOUR ANSWER : ?
What will be the correct output of the following program?#include<string.h>void main(){ char str[] = "C EXAMINATION", rev[17]; int i = strlen(str), j=0; for( ; i>=0; rev[j++] = str[i--]) rev[j] = str[j] ; puts(rev);} NOITANIMAXE Syntax error C No output at all. NOITANIMAXE C TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?#include<stdio.h>#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));} None of these 11 12 10 15 TRUE ANSWER : ? YOUR ANSWER : ?
Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I and II III and IV I, III and IV II and III I, II and III TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *p="hi friends", *p1; p1=p; while(*p!='\0') ++*p++; printf("%s", p1);} hi friends hj grjeodt None of These ij!gsjfoet TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i; char a[]="�"; if(printf("%sn", a)) printf("Ok here n"); else printf("Forget itn");} Error None of These Ok here Forget it TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} Garbage value Error 6 3 TRUE ANSWER : ? YOUR ANSWER : ?
What does the following declaration mean?int (*ptr)[10]; ptr is an array of 10 integers ptr is array of pointers to 10 integers ptr is an pointer to array ptr is a pointer to an array of 10 integers TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program code?#include <stdio.h>void main(){ int i=3, *j, **k; j = &i; k = &j; printf("%d%d%d", *j, **k, *(*k));} 333 444 433 000 Garbage Value TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char string[]="Hello World"; display(string);}void display(char *string){ printf("%s", string);} Compiler Error Can't Say will print Hello World None of These TRUE ANSWER : ? YOUR ANSWER : ?