Hi,
I want to run a for loop, in C, that loops when the first expression of the for loop has an integer value that is less than the integer value given as the first argument to the program.
I have tried it like this:
Code:
for ( i = 0; i < argv[1]; i++)
But the loop is infinite this way.
So what is a proper way of doing this?
Thanks for the help.