Wednesday, September 18, 2013

can the for loop have double value as index in c and c++?

can the for loop have double value as index in c and c++?

Is it legal to have the following for loops in c and c++:
for(double d=2.0; d<3.1; d+=0.1)

No comments:

Post a Comment