Multiple declarations and definations
- by Yogesh
X.c >>
-------------------------
int i;
main ()
{
fun ();
}
-------------------------
Y.c >>
int i;
fun ()
{
}
why does these two files compile with no error ? (using GCC)
but if i use int i = 10;
throws multiple definition error