C Programming Which of the following function is used to find the first occurrence of a given string in another string? strrchr() strnset() strstr() strchr() None of these strrchr() strnset() strstr() strchr() None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming The declarationint (*p) [5];means p is one dimensional array of size 5, of pointers to integers. p is a pointer to a 5 elements integer array. The same as int *p[ None of these. p is one dimensional array of size 5, of pointers to integers. p is a pointer to a 5 elements integer array. The same as int *p[ None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 33 Compilation Error 0 1 -1 33 Compilation Error 0 1 -1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i = -1; +i; printf("i = %d, +i = %d", i, +i);} i = 1, +i = 1 None of These i = -1, +i = 1 i = -1, +i = -1 i = 1, +i = 1 None of These i = -1, +i = 1 i = -1, +i = -1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} 1 1 1 Error garbage values 0 0 0 1 1 1 Error garbage values 0 0 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 30 1 10 -5 15 30 1 10 -5 15 ANSWER DOWNLOAD EXAMIANS APP