What does the return type extern stands for? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

What does the return type extern stands for?

4th Jan 2017, 4:21 AM
Shishir Ghimire
Shishir Ghimire - avatar
1 Resposta
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