C Programming What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff4 fff0 fff2 fff1 fff3 fff4 fff0 fff2 fff1 fff3 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] = 3 Compilation error a[1] = 2 a[0] = 2 a[0] = 3 a[1] = 3 Compilation error a[1] = 2 a[0] = 2 a[0] = 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));} 4, 4 0, 2 2, 0 2, 4 2, 2 4, 4 0, 2 2, 0 2, 4 2, 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 3 3 2 4 2 2 2 3 3 4 3 3 2 4 2 2 2 3 3 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about the program below?#includevoid main(){ int size, i; scanf("%d", &size); int arr[size]; for(i=1; i<=size; i++) { scanf("%d", arr[i]); printf("%d", arr[i]); }} The code is correct and runs successfully. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. The code is erroneous since the values of array are getting scanned through the loop. The code is erroneous since the statement declaring array is invalid. None of these The code is correct and runs successfully. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. The code is erroneous since the values of array are getting scanned through the loop. The code is erroneous since the statement declaring array is invalid. None of these 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? None of these strrchr() strnset() strchr() strstr() None of these strrchr() strnset() strchr() strstr() ANSWER DOWNLOAD EXAMIANS APP