please help me to understand "extern" keyword in C/C++ | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 4

please help me to understand "extern" keyword in C/C++

I'm just beginner for c/c++! I like to learn about how does work "extern" storage class specifier in c/c++ environment. I read a lot of tutorial about it but i cannot understand how it behave. Please help me to get clear idea about it! Thanks.

8th Nov 2022, 6:08 PM
Dilip ishara
Dilip ishara - avatar
1 Réponse
+ 3
With extern you tell the compiler that a specific symbol is found in another compilation unit. The use will become clear to you when you work with projects that encompass multiple source files.
8th Nov 2022, 9:25 PM
Ani Jona 🕊
Ani Jona 🕊 - avatar