Tip - Printing leading 0's in C?

Published  | Submitted by lynn gitelis
Printing leading 0's in C?

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 of using either case statements/i...

About Author

More by lynn gitelis

About This Tip

Posted: 9 years, 5 month(s) ago

137 Reads
0 Votes