Howdy,everyone.
my book told me that all functions are extern by default. and what about variables and consts ?
Regards~
Printable View
Howdy,everyone.
my book told me that all functions are extern by default. and what about variables and consts ?
Regards~
Functions declared outside a class are global by default, which means that functions in other files can use that function. Declared variables and consts outside classes and functions are also global by default. Which means that functions in other files can use them.
I got it. thanx,Shiro~;)Quote:
Originally posted by Shiro
Functions declared outside a class are global by default, which means that functions in other files can use that function. Declared variables and consts outside classes and functions are also global by default. Which means that functions in other files can use them.