Strings

I was wondering if I would declare array as an int or char? or what I have to use pointers.


Create a single dimensional array of chars (10 elements) called nameNumber

Ask the user to put in the classname (e.g CISP350, CISP360)
The classname comprises of 4 letters and 3 numbers (Validation is not necessary)
Your assignment specifies and array of chars. You won't be able to store letters in an array of ints.

 
char c_Code[8]="CISP350";
Topic archived. No new replies allowed.