Thread
:
integer print not making any sense.
View Single Post
#
2
14-02-2008, 23:21
esquared
Keeps saying 3-2-1-Rush...
AKA: Angry Eric
no team (Volunteer!)
Team Role: Mascot
Join Date: Jan 2006
Rookie Year: 2005
Location: Boston, MA
Posts: 192
Re: integer print not making any sense.
To print unsigned integers, use %u instead of %d.
Very odd things can occur when printf uses the wrong specifier for the format, the least of which are unexpected values being printed.
--Eric
esquared
View Public Profile
Find all posts by esquared
Find CD-Media Photos by esquared
Find CD-Media Papers by esquared