adspace
Answer Posted / Vishal Prayani
{"extern": "The extern keyword is used for external linkage declaration of variables in C++. When you declare a variable with extern, it tells the compiler that the variable has been declared elsewhere. This allows multiple source files to share the same global variable without redefinition errors.",
"externGlobalVariable": "An extern global variable is a variable declared outside any function and is given the keyword 'extern'. It must be initialized at least once in the program, usually in one of the source files."}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers