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;} None of these 6 9 Error 5 None of these 6 9 Error 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed? y=EDA y=AMVEDA y=VEDA y=MVEDA y=EXAMIANS y=EDA y=AMVEDA y=VEDA y=MVEDA y=EXAMIANS ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); Syntax error 0 0123456789 10 Infinite loop Syntax error 0 0123456789 10 Infinite loop ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program?#include#define int char void main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} sizeof(i)=2 None of These Compiler Error sizeof(i)=1 sizeof(i)=2 None of These Compiler Error sizeof(i)=1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} Compilation Error Infinite Loop 5 5 5 5 5 None of these 5 4 3 2 1 Compilation Error Infinite Loop 5 5 5 5 5 None of these 5 4 3 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} -2 1 Error 2 -2 1 Error 2 ANSWER DOWNLOAD EXAMIANS APP