मराठी

Scope and Visibility

Advertisements
  • Introduction 
  • External Variables
  • Static variables  
  • Automatic Variables  
  • Global variables. 
Maharashtra State Board: Class 11

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 

Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×