Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Programming/Code/Standard C Library/String & Character

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Standard C String & Character The Standard C Library includes also routines that deals with characters and strings. You must keep in mind that in C, a string of characters is stored in successive elements of a character array and terminated by the NULL character. /* "Hello" is stored in a character array */ char note[SIZE]; note[0] = 'H'; note[1] = 'e'; note[2] = 'l'; note[3] = 'l'; note[4] = 'o'; note[5] = '\0'; Even if outdated this C string and character functions still appear in old code and more so than the previous I/O functions.