1 2 3 4 5 6 7 8 9 10 11 | #include <stdio.h>
int
main()
{
int i = 0;
// with this code you sooner or later will shot your own leg ...
while (i < 5)
printf("i = %d\n", i++);
printf("after the loop: i = %d\n", i);
}
|
1 2 3 4 5 6 7 8 9 10 11 | #include <stdio.h>
int
main()
{
int i = 0;
// with this code you sooner or later will shot your own leg ...
while (i < 5)
printf("i = %d\n", i++);
printf("after the loop: i = %d\n", i);
}
|