C++ Reference Card

and determines the end of the string. A string is an array of characters. Arrays in C and C++ start at zero. str = “Hello”; str[2] = ‘e’; // string is now ‘Heelo’ common functions: strcat(s1,s2)strchr(c strcmp(s2,s1)strlen( strncpy(n strstr(s1,s2) Functions In C, functions must be prototyped before the main ................
................