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=VEDA y=EDA y=MVEDA y=AMVEDA y=EXAMIANS y=VEDA y=EDA y=MVEDA y=AMVEDA y=EXAMIANS ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable It should be both declared and initialized. None of these. It should be declared. It should be initialized. It should be both declared and initialized. None of these. It should be declared. It should be initialized. ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); } 0x1234ABCD, 0x1234ABCD, 10 0x1234ABCD, 0x1234ABCD, 0x1234ABCD Runtime error 0x1234ABCD, 10, 10 Syntax error 0x1234ABCD, 0x1234ABCD, 10 0x1234ABCD, 0x1234ABCD, 0x1234ABCD Runtime error 0x1234ABCD, 10, 10 Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming 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);} 3 6 Garbage value Error 3 6 Garbage value Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ printf("%p", main);} Some address will be printed Error None of These make an infinite loop Some address will be printed Error None of These make an infinite loop ANSWER DOWNLOAD EXAMIANS APP
C Programming A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as None of these. int *p(char *)[] int(*p(char *))[] int (*p) (char *)[] None of these. int *p(char *)[] int(*p(char *))[] int (*p) (char *)[] ANSWER DOWNLOAD EXAMIANS APP