C Programming Which of the following function is used to find the first occurrence of a given string in another string? strstr() strnset() strchr() None of these strrchr() strstr() strnset() strchr() None of these strrchr() ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 2, 3, 20 1, 2, 5 2, 1, 15 3, 2, 15 2, 3, 20 1, 2, 5 2, 1, 15 3, 2, 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int i=065, j=65; printf("%d %d", i, j);} 065 65 65 65 053 65 53 65 Syntax error 065 65 65 65 053 65 53 65 Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 5 5 5 2 4 4 2 4 5 2 5 5 5 5 5 2 4 4 2 4 5 2 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable 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. It should be both declared and initialized. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);} x=4 x=5 Error x=1 x=0 x=4 x=5 Error x=1 x=0 ANSWER DOWNLOAD EXAMIANS APP