What does the return type extern stands for? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does the return type extern stands for?

4th Jan 2017, 4:21 AM
Shishir Ghimire
Shishir Ghimire - avatar
1 Answer
0
extern is not a return type, but goes before the return type. You can declare a function with extern in a header file, then define it in a source file without the extern keyword. This tells the linker the function is defined elsewhere.
6th Jan 2017, 10:05 PM
unixunited
unixunited - avatar