Which of the following is NOT true about Global Variables?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. A function that uses global variables does not suffer from reusability.
Explanation
A, B and C are the standard drawbacks of global variables. A function that depends on global variables is tied to them and is harder to reuse, so the claim that it 'does not suffer' in reusability is false.More Programming Languages and Computer Graphics questions
- Arrange the 2-D viewing transformation pipeline. A. Convert world coordinates to viewing coordinates B. Map viewing coordinates to normaliz…
- The entire set of parameters, including the return address, that is stored for a procedure invocation is referred to as
- Consider the following statements:int x = 10, y = 15; x = ((x == y) ? (y + x) : (y - x)); What will be the value of x after executing these…
- The major adverse side effects of scan conversion are: A. Staircase appearance B. Unequal brightness of slanted lines C. Picket fence probl…
- Match List I (Functions) with List II (Uses of functions)List I List II A. fseek() I. Gives the current position in the file B. ftell() II.…
- Which of the following statements is NOT true?