Control Flow: Fall 21

Goal

What will be covered ?

Code:


++ n * n++ - --n
~> (++n * n++) - --n              where n = 3
~> (4 * n++) - --n                where n =4 (why?)
-->(4*4) - --n                    where n =5
-->(4*4) - 4                      where n =4 

++ n * n++ - --n
~> (++n * n++) - --n              where n = 3
~> (++n * n++) - 2                where n = 2
-->(++n*2) - 2                    where n =3 (why?)
-->(4*2) - 2                      where n =4

int i = 0;

i = i++;
System.out.println(i);




-----------------------------------------------------
C Language:

A good reference for C coding standard is the Software Engineering Institude CERT Center.

--------------
Conditional Statements vs Conditional Expressions: