Not quite: Your version would never stop printing - you need "{" and "}" to contain the loop contents, or the first statement only will be looped on.
But:
int i;
for (i = 0; i < 5; i++)
printf("%d",i);
Is the same as:
int i=0;
while (i < 5)
{
printf("%d",i);
i++;
}
or:
int i=0;
for (;i < 5;)
{
printf("%d",i);
i++;
}
But you shouldn't really use the final example.
BTW: It is a good idea to always use curly brackets in a loop of if condition when you are starting to avoid just the kind of problem I mentions at the start!