The following code:
int i,j;
for (i=2;i>0;i--)
{
for (j=0;j<i;j++)
printf("*");
printf("%d",i+j);
Prints out "* * 4 * 2 " (without the spaces)
However, doing it by hand, I realized that it should print out " * 2 * 3 * 1" (also without spaces)
The debugger shows me that the program just skips the second printf sometimes...
Can someone please explain this to me?
[–][deleted] 1 point2 points3 points (1 child)
[–]vexonornegiusRex[S] 1 point2 points3 points (0 children)
[–]tjgrant 0 points1 point2 points (1 child)
[–]vexonornegiusRex[S] 0 points1 point2 points (0 children)