C Programming Determine Output:void main(){ char *p="hi friends", *p1; p1=p; while(*p!='\0') ++*p++; printf("%s", p1);} None of These hi friends hj grjeodt ij!gsjfoet None of These hi friends hj grjeodt ij!gsjfoet ANSWER DOWNLOAD EXAMIANS APP
C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } None of these. Will make an infinite loop. Error Some address will be printed. None of these. Will make an infinite loop. Error Some address will be printed. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} 8 3 3 8 3 7 None of these 7 3 8 3 3 8 3 7 None of these 7 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Runtime error Syntax error 4 5 6 7 1 2 3 4 4 Runtime error Syntax error 4 5 6 7 1 2 3 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The variable k can’t be initialized. The commas should be semicolons. The increment should always be ++k . There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The variable k can’t be initialized. The commas should be semicolons. The increment should always be ++k . ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int i=065, j=65; printf("%d %d", i, j);} 053 65 65 65 065 65 53 65 Syntax error 053 65 65 65 065 65 53 65 Syntax error ANSWER DOWNLOAD EXAMIANS APP