A variable defined in the main () function is called a global variable.
举一反三
- Which of the following type of variable is visible only within a function where it is defined? A: global variable B: local variable C: Both of the above. D: None of the above.
- A variable that can take on values at any point over a given interval is called _______. A: a value variable B: a continuous random variable C: a point variable D: a discrete random variable
- 变量在程序中的可用范围称为该变量的作用域。The scope of a specific variable used in a program is called the scope of the variable.
- 变量在程序中的可用范围称为该变量的作用域。The scope of a specific variable used in a program is called the scope of the variable.
- 具体变量在程序中的使用范围称为该变量的作用域。The scope of a specific variable used in a program is called the scope of the variable.