Home » C++ Programming » Data Types » Question
  1. Can two functions declare variables(non static) with the same name.
    1. Yes
    2. No
    3. No, it gives a runtime error
    4. Yes, but not a very efficient way to write programs
    5. None of these
Correct Option: D

We can declare variables with the same name in two functions because their scope lies within the function.



Your comments will be displayed only after manual approval.