Quantcast
Viewing all articles
Browse latest Browse all 12

Answer by Brad Jennings for Printing leading 0's in C?

If you need to store the zipcode in a character array zipcode[] , you can use this:

snprintf( zipcode, 6, "%05.5d", atoi(zipcode));

Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>