-->

What is C-string?

 What is C-string? Explain with an example.

- C-string is null terminated string which is simply a null terminated character array. C-string is essentially C style string. It is different than the way C++ handles strings-by providing string class.

- Its general form of declaration is :



- Please note while declaring a C-string, we need to declare it to be one character longer that the largest string that it is to hold. For example, to declare a C-string str that can hold 10 characters, we need to write :


- One extra location is reserved to store the null char at the end of the string.
- Some of the most commonly used C-string functions are :