Quantcast
Channel: Printing leading 0's in C - Stack Overflow
Viewing all articles
Browse latest Browse all 12

Answer by James Curran for Printing leading 0's in C?

$
0
0

The correct solution is to store the zip code in the database as a STRING. Despite the fact that it may look like a number, it isn't. It's a code, where each part has meaning.

A number is a thing you do arithmetic on. A zip code is not that.


Viewing all articles
Browse latest Browse all 12

Trending Articles



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