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 5 2 5 5 2 4 4 5 5 5 2 4 5 2 5 5 2 4 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? None of these int funct(); int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } void funct(int) { printf(“Hello"); } None of these int funct(); int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } void funct(int) { printf(“Hello"); } ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} 3 7 8 3 3 8 7 3 None of these 3 7 8 3 3 8 7 3 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; char a[]="�"; if(printf("%sn", a)) printf("Ok here n"); else printf("Forget itn");} Ok here Forget it Error None of These Ok here Forget it Error None of These 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 erroneous since the statement declaring array is invalid. 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 correct and runs successfully. None of these The code is erroneous since the statement declaring array is invalid. 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 correct and runs successfully. None of these 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);} 3, 2, 15 2, 3, 20 2, 1, 15 1, 2, 5 3, 2, 15 2, 3, 20 2, 1, 15 1, 2, 5 ANSWER DOWNLOAD EXAMIANS APP