मराठी

Scope and Visibility

Advertisements

Topics

  • Introduction 
  • External Variables
  • Static variables  
  • Automatic Variables  
  • Global variables. 

Scope and Visibility

The scope or visibility of a variable determines whether it can be accessed from other functions in the same source file or in other source files. 

External variables, defined outside any block and memory for these is allocated once. Even though the external variable is declared more than once, it only has memory allocated to it once. 

Static variables are variables that are local to a function but which (unlike auto variables) retain their values between invocations of the function - these are internal static variables 

If you would like to contribute notes or other learning material, please submit them using the button below.
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×