String is defined as an array of characters in C. Last character of the string is a Null character (‘\0’) which specifies the end of string and has a decimal value 0.
Eg: char name [7] = {‘s’,’a’,’c’,’h’,’i’,’n’,’\0’};
What are Strings?
More Questions
- What are the different types of Constants?
- What are the different String functions available?
- What are the Java tokens?
- What are the different data types available in C or C++?
- Define array. How to declare an array in C++?
- What is an Identifier?
- What is variable and constant?
- What is the range of different data types?