Friday, March 12, 2010

Comma

The comma in the following statement is not the comma operator:
for (int i = 0, j = 0; i < 10; ++i) {}It is just part of the declaration statement. Reference: "C++ Gotchas" by Stephen C. Dewhurst, Addison-Wesley, 2002, p. 40.

No comments:

Post a Comment