[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Discussion :: C

79. What is scope & storage allocation of extern and global variables?

Answer:

Scope: it defines the life time of a variable depends on declaration of a variable.If it is declared inside the variable it is local variable,If it is outside it is global variable.
Extern variables: belong to the External storage class and are stored in the main memory

Asked In :: TCS

Post Your Answer Here:

Name *
Email
Alert me

Post Your Reply Here:

Report Error

Please Login First Click Here