C Programming Which of the following function is used to find the first occurrence of a given string in another string? strchr() strrchr() strstr() None of these strnset() strchr() strrchr() strstr() None of these strnset() 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[0] = 2 a[1] = 2 Compilation error a[1] = 3 a[0] = 3 a[0] = 2 a[1] = 2 Compilation error a[1] = 3 a[0] = 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. III and IV II and III I and III II and IV I and II III and IV II and III I and III II and IV I and II ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?#includevoid main(){ int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0}; printf("%u, %u", a+1, &a+1);} 65480, 65488 None of these 65474, 65488 65474, 65476 65480, 65496 65480, 65488 None of these 65474, 65488 65474, 65476 65480, 65496 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 3 0 0 0 0 2 1 0 0 1 2 0 0 0 1 3 1 0 0 1 3 0 0 0 0 2 1 0 0 1 2 0 0 0 1 3 1 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 Garbage value Error 6 3 Garbage value Error 6 ANSWER DOWNLOAD EXAMIANS APP