topical media & game development
basic-program-code-02-Ex2-06.c
? /
basic-program-code-02-Ex2-06.c
// Ex2_06.cpp
// Exercising the comma operator
include <iostream>
using std::cout;
using std::endl;
int main()
{
long num1 = 0, num2 = 0, num3 = 0, num4 = 0;
num4 = (num1 = 10, num2 = 20, num3 = 30);
cout << endl
<< "The value of a series of expressions "
<< "is the value of the rightmost: "
<< num4;
cout << endl;
return 0;
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.