A C++ programmer should not use an expression such as this one x = j + y * ++j; because

a. the expression may produce different results on different C++ compilers
b. it is illegal to have two consecutive operators
c. the ++ operator cannot be used in combination with other arithmetic operators
d. the increment operator cannot be used in the same expression as the addition operator


a. the expression may produce different results on different C++ compilers

Computer Science & Information Technology

You might also like to view...

Given the following code fragment, what is the output?

int x=5; if( x > 5) cout << "x is bigger than 5. "; cout <<"That is all. "; cout << "Goodbye\n"; a. x is bigger than 5. That is all b. x is bigger than 5 c. That is all. Goodbye d. Goodbye

Computer Science & Information Technology

Default tab stops are set every ________ across a page

A) one-half inch B) inch C) quarter-inch D) ten centimeters

Computer Science & Information Technology

What differentiates a hyperlink from text?

A) Red underline B) Black underline C) Green underline D) Blue underline

Computer Science & Information Technology

Troubleshooting a computer issue requires all of the following EXCEPT: _____.

A. defining the problem B. logging off and back on again C. identifying possible causes D. determining the cause

Computer Science & Information Technology