C Programming What will be the output of the following program? #include\ int main(){ extern int i; i = 20; printf("%ld ", sizeof(i)); return 0; } Linker Error : Undefined symbol 'i' 4 2 Depends on the Compiler Linker Error : Undefined symbol 'i' 4 2 Depends on the Compiler ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 4 8 5 5 2 5 5 2 4 5 2 4 4 8 5 5 2 5 5 2 4 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} Garbage Value None of These 1 10 Garbage Value None of These 1 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:#include#define clrscr() 100void main(){ clrscr(); printf("%dn", clrscr());} 0 100 Error 1 0 100 Error 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a); Garbage Value 13 12 14 15 Garbage Value 13 12 14 15 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. None of these 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. The code is erroneous since the statement declaring array is invalid. None of these 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. ANSWER DOWNLOAD EXAMIANS APP