Ask coding questions

← Back to all posts
Why does this go down?
AncientBison (67)

My simple program here is to show and ask why the numbers go down and up at random, when the numbers should go down!

Answered by mwilki7 (1134) [earned 5 cycles]
View Answer
Comments
hotnewtop
mwilki7 (1134)

^ is used as the XOR operator and not exponent

[deleted]

you are right there is a fonction pow that you can [email protected]

@mwilki7

AncientBison (67)

@mwilki7 Thnank you! I found a great Stackoverflow on it! The guy writing it asked the guy who made C and he said, "It was random" and at the time the ^ meant nothing!