What is the difference
if I put "extern" keyword prefix on these functions ?
//ns.h
#ifndef NS_H_INCLUDED
#define NS_H_INCLUDED
extern double max(double* A,int size);
extern double min (double* A,int size);
#endif // NS_H_INCLUDED
//declerations in corresponding ns.cpp
if I remove them that is important for compiler ?
(thanks much before for any clues)
Last edited on
In this case - removing the extern keyword would have to effect because function linkage is extern by default anyway.