I think it's right.
<span>Text, numbers, graphics, or sound represented by discrete digits, such as 1s and 0s.</span>
Answer:
Option (B) is the correct answer to the following question.
Explanation:
Here, in the code "const" is the constant keyword which is used when we need that the value stored in that variable will never change.
The following option is correct because the assignment operator are those operator which initialize the value in the variable and overloading of the assignment operator would be as we use the other operators and also we could use them by creating the objects as we use in the copy constructor.
So, that's why the following option is correct.
The question is asking us to swap the values of xp and yp while not changing where they point to. Setting xp equal to yp would not work because then we couldn't change yp since the value for xp was overwritten. We can use a third variable to swap them.
int zp = xp;
xp = yp;
yp= zp;