aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming Fundamentals
  • The scope of a global variable which is declared as _____...
Multiple choice

The scope of a global variable which is declared as __________ is within the file.

  1. static

  2. extern

  3. register

  4. function argument

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • int var1; If a variable has been declared with file scope, as above, can it safely be accessed globally fro...
  • Static global variable in one c++ file can be used in another c++ file with the help of extern keyword.
  • Which of the following variables are called global variables in C++?
  • Global variables that are declared static are ____________. Which one of the following correctly completes ...
  • How is a variable accessed from another file?
  • A variable declared inside a method is called
  • __________ is the scope of variable declared in the outermost block of a function.
  • Which of the following operators is used in providing a global scope form the variable?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Fundamentals (2381 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy