C++.



if - 6


++ switch. .

5.3

:

(a) if ( ivall != iva12 )

ivall = iva12

else

ivall = iva12 = 0;

(b) if ( ivat < minval )

minvat = ival;

occurs = 1;

(c) if ( int ival = get_value())

cout << "ival = "

<< ival << endl;

if ( ! ival )

cout << "ival = 0\n";

(d) if ( ival = 0 )

ival = get_value();

(e) if ( iva1 == 0 )

else ival = 0;

5.4

occurs

min(), , . . ?