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' 2 4 Depends on the Compiler Linker Error : Undefined symbol 'i' 2 4 Depends on the Compiler ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} Infinite Loop 5 5 5 5 5 5 4 3 2 1 None of these Compilation Error Infinite Loop 5 5 5 5 5 5 4 3 2 1 None of these Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} garbage values 0 0 0 1 1 1 Error garbage values 0 0 0 1 1 1 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ printf("%p", main);} Error None of These make an infinite loop Some address will be printed Error None of These make an infinite loop Some address will be printed ANSWER DOWNLOAD EXAMIANS APP
C Programming Which is the only function all C programs must contain? start() main() printf() getch() system() start() main() printf() getch() system() ANSWER DOWNLOAD EXAMIANS APP
C Programming What is right way to Initialize array? int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; ANSWER DOWNLOAD EXAMIANS APP