C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi hi followed by garbage value h Error Garbage Value hi hi followed by garbage value h Error Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 3, c = 8 b = 4, c = 6 a = 4, c = 6 b = 3, c = 6 a = 4, c = 8 a = 3, c = 8 b = 4, c = 6 a = 4, c = 6 b = 3, c = 6 a = 4, c = 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} %d\n None of These 300 Error %d\n None of These 300 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[1] = 2 a[0] = 3 Compilation error a[1] = 3 a[0] = 2 a[1] = 2 a[0] = 3 Compilation error a[1] = 3 a[0] = 2 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? strstr() strrchr() strnset() None of these strchr() strstr() strrchr() strnset() None of these strchr() 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]);} 0 6 Garbage Value None of these 5 0 6 Garbage Value None of these 5 ANSWER DOWNLOAD EXAMIANS APP