Can Someone Explain this to me?
The file a is as follows:
file a.c
#include <stdio.h>
#include <stdlib.h>
int fun1();
int main()
{
fun1();
return 0;
}
File b is written as:
file b.c
static int fun1();
int fun1(){
printf("fron fun1");
return 0;
}
When I try to compile my code, the compiler gives an error: undefined reference to fun1. What does it mean if I do declare fun1 static in file b.c?