C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 2 2 1 1 2 1 1 2 2 2 1 1 2 1 1 2 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=AMVEDA y=VEDA y=EXAMIANS y=MVEDA y=EDA y=AMVEDA y=VEDA y=EXAMIANS y=MVEDA y=EDA ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? No output Runtime error 8 6 Syntax error No output Runtime error 8 6 Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the correct output of the following program?#includevoid 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 No output at all. C NOITANIMAXE C Syntax error NOITANIMAXE No output at all. C NOITANIMAXE C Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} 300 None of These %d\n Error 300 None of These %d\n Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} 17 -1 16 19 20 17 -1 16 19 20 ANSWER DOWNLOAD EXAMIANS APP