Login  |  Register

Strings In C Programming Language

There is no data type available to create strings in the C programming language. You need to create char arrays to store a string in C language. Therefore, in C, the character array is also called string. In the C programming language, the string is terminated from the null character (\0). In C you can declare and initialize strings in c programming language in 2 ways. Īn the first method, you create an array of a finite number and in each of its index, there is a character store of the string. The null character (\0) is stored in the last index of this array. It is necessary to do this.