for cycle
#1

pawn Код:
for(new i = 0; i < 67; i++)  printf("%d", i);
prints 48,49,50 .... 65,66
where are 0 - 47?


Explanation?
Reply
#2

pawn Код:
main()
{
    for(new i = 0; i != 67; i++) printf("%d", i);
}
Код:
Output:
0
..
66
https://sampforum.blast.hk/showthread.php?tid=305770
Reply
#3

I didnt ask for someone to test it.
I wanted to know what could cause something like that to happen.
Reply
#4

Quote:
Originally Posted by Macluawn
Посмотреть сообщение
I didnt ask for someone to test it.
I wanted to know what could cause something like that to happen.
It should not happen. This is most likely a problem on your code.
Reply
#5

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
It should not happen.
That's quite obvious.


Could anyone explain what causes it, and possibly, how to avoid it. Thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)