Print Friendly and PDF
What’s wrong with the following statement? Provide the correct statement to accomplish what the programmer was probably trying to do. cout << ++( x + y ) ;
What’s wrong with the following statement? Provide the correct statement to accomplish
what the programmer was probably trying to do.

cout << ++( x + y ) ;

Solution:

cout << ( x + y ) + 1;
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: