मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

Explam Local Data and Global Data Or Variable in C++ Using Examples. - Computer Science 1

Advertisements
Advertisements

प्रश्न

Explam Local Data and Global Data or variable in C++ using examples.

टीपा लिहा

उत्तर

(1) Local data or variable is that data which comes inside the class.
(2) Global data or variable that data which comes outside the class.
(3) So, For accessing global data, the compiler requires a scope resolution operator.
(4) While in local data, scope resolution is not required.
(5) example:
int a ; //global data
void main()
{
int a; // local data
}

shaalaa.com
C++ Programming
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2015-2016 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×