Home / MCQ Bank / Computer
Computer Function Difficulty: Medium

What will be the output of the following C code if these two files namely test.c and test1.c are linked and run? -------file test.c------- #include <stdio.h> #include ""test.h"" int main() { i = 10; printf(""%d "", i); foo(); } -----file test1.c------ #include <stdio.h> #include ""test.h"" int foo() { printf(""%d\n"", i); } -----file test.h----- #include <stdio.h> #include <stdlib.h> static int i;

Select the correct option to test your answer:

More Computer Questions

Consider this statement: typedef enum good {a, b, c} hello; Which of the following statements is incorrect about hello? In Access press to Toggle the focus forward between controls in the wizard What is the purpose of the 'extern' keyword in a function declaration in C++? It is a good practise to not throw which exception in close() method of autocloseable? What is the main use of the priority_queue in C++ Standard Library?