C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 0 10..50 10..10 Error 0 10..50 10..10 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} 20 2 Linker Error Compiler Error 20 2 Linker Error Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming When a function is recursively called all the automatic variables are stored in a .......... Array Queue Register Stack Linked list Array Queue Register Stack Linked list ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 5 5 5 5 5 4 3 2 1 None of These Infinite Loop 5 5 5 5 5 5 4 3 2 1 None of These Infinite Loop 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 a[0] = 2 a[0] = 3 Compilation error a[1] = 2 a[1] = 3 a[0] = 2 a[0] = 3 Compilation error a[1] = 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct statement.I. The scope of a macro definition need not be the entire program.II. The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV. A macro definition may go beyond a line. II, III and IV I and II I, II, III and IV II and III I, II and III II, III and IV I and II I, II, III and IV II and III I, II and III ANSWER DOWNLOAD EXAMIANS APP