You copied the statement wrong. In the program you cited in your comment there’s only one for
statement which approximates what you posted above:
for(time=0,count=0;remain!=0;)
In this case the “initialization” portion of the for
statement is
time=0,count=0
Note that the character between the initialization of time and count is a comma, not a semicolon. This means
that both time
and count
are set to zero. The “test” portion of the for
statement is
remain != 0
meaning that the loop will continue as long as remain
is not equal to zero.
In this for
statement the “increment” portion is empty – so nothing is incremented/decremented/whatever at the end of each pass through the loop.
Best of luck.
solved for loop containing all equals statements C