452 views
0 votes
0 votes
  1. #include <stdio.h>
  2.     #include "test.h"
  3.     int main()
  4.     {
  5.         i = 10;
  6.         printf("%d ", i);
  7.         foo();
  8.     }
  9. 
     
  10.     in file test1.c
  11.     #include <stdio.h>
  12.     #include "test.h"
  13.     int foo()
  14.     {
  15.         printf("%d\n", i);
  16.     }
  17. 
     
  18.     in file test.h
  19.     #include <stdio.h>
  20.     #include <stdlib.h>
  21.     static int i;

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
3
CJ147 asked Oct 11, 2018
641 views
The Following code has output Gate2019 #include <stdio.h char* fun(){ char* temp = "Gate2019"; return temp; } int main(void) { // your code goes here puts(fun()); return...