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=MVEDA y=EDA y=AMVEDA y=VEDA y=EXAMIANS y=MVEDA y=EDA y=AMVEDA y=VEDA y=EXAMIANS ANSWER DOWNLOAD EXAMIANS APP
C Programming The library function used to find the last occurrence of a character in a string is strnstr() strstr() None of these laststr() strrchr() strnstr() strstr() None of these laststr() strrchr() 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, 0x1234ABCD 0x1234ABCD, 10, 10 Syntax error 0x1234ABCD, 0x1234ABCD, 10 Runtime error 0x1234ABCD, 0x1234ABCD, 0x1234ABCD 0x1234ABCD, 10, 10 Syntax error 0x1234ABCD, 0x1234ABCD, 10 Runtime error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Segmentation fault/runtime crash 10 Undefined behavior Compiler time error Segmentation fault/runtime crash 10 Undefined behavior Compiler time error ANSWER DOWNLOAD EXAMIANS APP
C Programming The function sprintf() works like printf(), but operates on .......... Data file no such function in 'C'. stdin stderr string Data file no such function in 'C'. stdin stderr string ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;printf("Enter your age:");scanf("%f", &age);AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("You have lived for %f seconds", AgeInSeconds);} Run time error Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0 seconds Run time error Enter your age: xyz You have lived for 0.00000 seconds Enter your age: xyz "after that program will stop" Enter your age: xyz You have lived for 0 seconds ANSWER DOWNLOAD EXAMIANS APP