I am having a problem with loop, I don't know why but loop never ends.
int main(int argc, char *argv[])
{
int j;
char s[2];
for(j=1;j<=3;j++)
{
sprintf(s,"s%d",j);
printf("%s", s);
}
system("PAUSE");
return 0;
}
I think loop should show s1s2s3 in console.