C++ Syntax: ".."


Double quotes are used to delimit a character string. C++ does the following:-
  1. Allocates enough space to store the character string including a trailing 0 (which is used to signal the end of the string)
  2. Returns a pointer character.

Other Uses for ".."


Usage Notes

Character strings sometimes contain special characters that are introduced by preceding them with a backslash. The most common of these is \n which means newline, so the famous:- print("Hello World!\n"); leaves the cursor tidily at the start of the next line.
Go Back to the The C++ Crib Top Page

If you have any comments about this page please send them to Nick West