Explore BrainMass
Share

What Data Type to Use with Zip Codes

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

When working with a United States zip code in your program, would it be better to use an integer variable or a character string? Why?

© BrainMass Inc. brainmass.com March 21, 2019, 1:32 pm ad1c9bdddf
https://brainmass.com/computer-science/security/what-data-type-to-use-with-zip-codes-98996

Solution Preview

When using 5 digit Zip codes in program it is safe to use a character string because on ...

Solution Summary

Discusses the comparative merits of representing a zip code as either a numeral or a character.

$2.19