Archive for May, 2009

Strings in C++ »

Strings and Arrays of characters in C++ Low level strings are represented by arrays of characters in C and C++. These arrays are terminated by ‘\0’ , the special marker character null, which is used to indicate the end of a string. char string1[ ] = { ‘H’,’e’,’l’,’l’,’o’,’ ‘, ‘W’, ‘o’, ‘r’, ‘l’, ‘d’, ‘\0’ […]