Problem: Create an array of string in C.

C language has no ‘string’ datatype, so we need to store the string as multiple characters in a char array.

The above statement can store only one string and we need to store multiple names. The solution for this is to create an array of char array.

The above statement creates a string array which can store up to ‘size’ number of elements, each of length 30.

Let’s see how to implement these in C Program.

String Array in C

Output

String Array in C

If you haven’t understood any part of the program then comment below.

Close Menu