3 ms·
His C program is actually a C++ one. C does not allow declaration of variables in the for loop (i.e. 'int i;' line has to precede the for statement). Better not
by smikhanov 17y ago
His C program is actually a C++ one. C does not allow declaration of variables in the for loop (i.e. 'int i;' line has to precede the for statement). Better not to take any programming advices from someone who can't tell C from C++.
- pavlov 17y agoC99 allows this.
- deleted 17y ago[deleted]