C Programming What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} 9 6 Error None of these 5 9 6 Error None of these 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);} 11 None of These 9 10 11 None of These 9 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} There will be a compilation error reported. The loop will run infinitely many times. Prints the value of 0 one time only. A run time error will be generated. The program will not enter into the loop. There will be a compilation error reported. The loop will run infinitely many times. Prints the value of 0 one time only. A run time error will be generated. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char p[]="%dn"; p[1] = 'c'; printf(p, 65);} 65 Error A c 65 Error A c ANSWER DOWNLOAD EXAMIANS APP
C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } 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. None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 11, 10 11, 11 10, 11 10, 10 11, 10 11, 11 10, 11 10, 10 ANSWER DOWNLOAD EXAMIANS APP