I\'m trying to find a good way to print leading 0\'s, such as 01001 for a zipcode. While the number would be stored as 1001, what is a good way to do it?
I thought
If you need to store the zipcode in a character array zipcode[] , you can use this:
snprintf( zipcode, 6, "%05.5d", atoi(zipcode));