adspace


Explain the extern storage classes in c++.

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


Please Help Members By Posting Answers For Below Questions

How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1165


Can union be self referenced?

1267


daily Routine of father

1485


What character terminates all character array strings a) b) . c) END

1397


What is the latest version on c++?

1209