1.

How Do You Declare A Variable That Will Hold String Values?

Answer»

The char keyword can only hold 1 character value at a time. By creating an ARRAY of characters, you can store string values in it. EXAMPLE: “char MYNAME[50]; ” declares a string variable named MyName that can hold a maximum of 50 characters.

The char keyword can only hold 1 character value at a time. By creating an array of characters, you can store string values in it. Example: “char MyName[50]; ” declares a string variable named MyName that can hold a maximum of 50 characters.



Discussion

No Comment Found