Chapter 4 Quiz Starting Out With C++ 047

Can you have two variables with the same name in C++?

a. only if they are in the same scope
b. only if they are in different blocks
c. if one of the variables is in a function
d. heck, I wasn't listening when we went over this. idk

No comments:

Post a Comment