Chapter 4 Quiz Starting Out With C++ 004

What is the difference between = and == in C++?

a. They are the same but the == makes it more visible to the programmer
b. == is used to assign a value to a variable and = is used to compare.
c. = is used to assign a value to a variable.
d. == is used for comparison and = is used to assign

1 comment:

  1. d. == is used for comparison and = is used to assign

    ReplyDelete