C Programming Determine Output:void main(){ char p[]="%dn"; p[1] = 'c'; printf(p, 65);} 65 A c Error 65 A c Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} Code will not compile Garbage value 0 0 Garbage Value 0 0 Garbage vlaue Garbage Value Code will not compile Garbage value 0 0 Garbage Value 0 0 Garbage vlaue Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after execution of the following code?void main(){ int arr[10] = {1,2,3,4,5}; printf("%d", arr[5]);} None of these 6 Garbage Value 0 5 None of these 6 Garbage Value 0 5 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);} 10 Segmentation fault/runtime crash Compiler time error Undefined behavior 10 Segmentation fault/runtime crash Compiler time error Undefined behavior ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is used to find the first occurrence of a given string in another string? strchr() strrchr() strnset() None of these strstr() strchr() strrchr() strnset() None of these strstr() ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program code?#include#define a 10void main(){ #define a 50 printf("%d", a);} None of These 10 50 Compiler Error None of These 10 50 Compiler Error ANSWER DOWNLOAD EXAMIANS APP