A variable declared within the block {} has the following scope :
ब्लॉक {} के भीतर घोषित एक चर का निम्नलिखित स्कोप होता है :
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. Local Scopeलोकल स्कोप
Explanation
A variable declared inside a block { } has local (block) scope.
ब्लॉक { } के भीतर घोषित चर का स्कोप लोकल होता है।
More Programming Concepts & Python questions
- What is a copy constructor ?
- In the given declaration of an array : float height[50];
- The functions 'cin' and 'cout' resolve the necessary conversions at :
- In C++, << operator used for shifting bits can also be used for :
- Which of the following is the scope resolution operator in C++ language ?
- Inheritance allows the following in C++ program :