Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

unsigned int in minuses wtf?

Name: Anonymous 2007-07-07 1:35 ID:mct+n59u

I've made a function that takes in an unsigned int. the unsigned int is cast from a normal int

and it can go into minuses, why? i thought unsigned ints couldn't!

Name: Anonymous 2007-07-07 10:01 ID:cwwqgjj7

The OP must've tried to print an unsigned int with printf, using the %d directive rather than %u. Silly, silly >>1.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List