hi i have 2 C++ files say a.cpp and a main.cpp;lets say a function a() is defined and implemented in a.cpp ; i need to call this function in main()
then i should declare a() as extern void a() in main.cpp ; but this works even without extern. So what is the use of extern ?
then i should declare a() as extern void a() in main.cpp ; but this works even without extern. So what is the use of extern ?