Easy C++



by John Kopp

Support this site at no cost to you

Definition: In C, strings are represented in null , '\0', terminated character arrays. In C++, it is common to use the string class, which is part of the standard C++ library to hold and manipulate strings.

Related Terms:
• array

Relevant Links:
C++ Tutorial - Lesson 11: Strings
This lesson covers stings. C++ has two methods for representing strings, C-style character arrays and the string class. C-style character arrays are a low-level, primitive representation of string data. The string class provides more functionality and is less error prone in use. It provides methods for easy manipulation of string data.

C Tutorial - Lesson 10: Strings
This lesson covers the use of strings in C. Some basic ways to analyze and manipulate string data are presented. Several C library functions that are useful for string manipulation are introduced.

Please use the back button on your browser to return to the last page

           Full Glossary