if this is a homework question then the school needs to find a new teacher. Using pre and post increment operators like that is very bad form. The only exception would be if the professor was trying to show that such a statement is bad form. Pre and post increment operators should only be used in simple statements to avoid obscure equations like above. Such an equation is a nightmare for debugging and code maintenance.
|