Abl-electronic PIC Microcontrollers PIC16 Instrukcja Użytkownika Strona 52

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 312
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 51
String Constants
String constants, also known as string literals, are a special type of constants
which store fixed sequences of characters. A string literal is a sequence of any
number of characters surrounded by double quotes:
"This is a string."
The null string, or empty string, is written like "". A literal string is stored inter-
nally as the given sequence of characters plus a final null character. A null string is
stored as a single null character.
The characters inside the double quotes can include escape sequences, e.g.
"\t\"Name\"\\\tAddress\n\n"
Adjacent string literals separated only by whitespace are concatenated during the
parsing phase. For example:
"This is " "just"
" an example."
is an equivalent to
"This is just an example."
Line continuation with backslash
You can also use the backslash (
\) as a continuation character to extend a string
constant across line boundaries:
"This is really \
a one-line string."
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
44
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Przeglądanie stron 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 311 312

Komentarze do niniejszej Instrukcji

Brak uwag