I don't get it.Quote:
a more compliant compiler than flagging declaring "i" within a for loop is invalid
In c it is invalid. VC6 notifies it:
In c++ it is valid and VC++6 compiles it well.Quote:
d:\work\projects\cpp\mysamples\classno\test.c(6) : error C2143: syntax error : missing ';' before 'type'
So what is the problem?