Abl-electronic PIC Microcontrollers PIC16 Manual do Utilizador Página 52

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 312
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 311 312

Comentários a estes Manuais

Sem comentários