(Solved):Validate a zip code which will be stored into a struct (global) as a long int. The user must be able to enter zip codes with ‘0’. Use validation as part of the user input. Revise the code given bel… View Answer…

 

Question

Validate a zip code which will be stored into a struct (global) as a long int. The user must be able to enter zip codes with ‘0’. Use validation as part of the user input. Revise the code given below:

  1. char s_num[10], c; \
  2. int i_num; \
  3. do
Scroll to top