C Programming

ADDITIONAL ASSIGNMENT OPERATOR
Consider the following statement,


	numbers[loop] += 7;

This assignment += is equivalent to add equals. It takes the value of numbers[loop], adds it by 7, then assigns the value to numbers[loop]. In other words it is the same as,


	numbers[loop] = numbers[loop] + 7;


CLASS EXERCISE C17
What is the outcome of the following, assuming time=2, a=3, b=4, c=5


	time -= 5;
	a *= b + c;

Answers


ęCopyright B Brown. 1984-1999. All rights reserved.