Espaços nominais
Variantes
Ações

C language

De cppreference.com
< c

<metanoindex/>

 
 
Linguagem C
Tópicos gerais
Original:
General topics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Preprocessor
Comentários
Palavras-chave
Tabela ASCII
Seqüências de escape
História da C
Controle de fluxo
Original:
Flow control
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Declarações execução condicional
Original:
Conditional execution statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Instruções de iteração
Original:
Iteration statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ir declarações
Original:
Jump statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
declaração da função
linha especificador
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Especificadores
Original:
Specifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
cv especificadores
armazenamento de classe especificadores
alignas especificador (C99)
Literais
Original:
Literals
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Expressões
Original:
Expressions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ordem de avaliação
operadores alternativos
operadores
precedência do operador
Utilitários
Original:
Utilities
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
typedef declaration
atributos (C99)
lança
Diversos
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Assembly embutido
 

This is a brief reference of available C constructs.

Tópicos gerais

Preprocessor

Comentários

Palavras-chave

Tabela ASCII

Seqüências de escape

História da C

Controle de fluxo

Declarações execução condicional

Different code paths are executed according to the value of given expression

  • if executa código condicionalmente
    Original:
    if executes code conditionally
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • switch executa o código de acordo com o valor de um argumento integral
    Original:
    switch executes code according to the value of an integral argument
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

Instruções de iteração

The same code is executed several times

Ir declarações

Continue execution at a different location

  • continue pula a parte restante do corpo do ciclo de fechamento
    Original:
    continue skips the remaining part of the enclosing loop body
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • break termina o loop de fechamento
    Original:
    break terminates the enclosing loop
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • goto continua a execução em outro local
    Original:
    goto continues execution in another location
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • return termina a execução da função de fechamento
    Original:
    return terminates execution of the enclosing function
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

Funções

The same code can be reused at different locations in the program

Tipos

Especificadores

Literais

Literals are the tokens of a C program that represent constant values, embedded in the source code.

Expressões

Uma expressão é uma seqüência de operadores e operandos que especifica uma computação. Uma expressão pode resultar em um valor e pode causar efeitos secundários.
Original:
An expression is a sequence of operators and operands that specifies a computation. An expression can result in a value and can cause side effects.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Common operators
atribuição incrementNJdecrement aritmética lógico comparação memberNJaccess outro

a = b a += b a -= b a *= b a /= b a %= b a &= b a |= b a ^= b a <<= b a >>= b

++a --a a++ a--

+a -a a + b a - b a * b a / b a % b ~a a & b a | b a ^ b a << b a >> b

!a a && b a || b

a == b a != b a < b a > b a <= b a >= b

a[b] *a &a a->b a.b

a(...) a, b (type) a ? : sizeof

Utilitários

, Tipos
Original:
; Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
; Casts
Original:
; Casts
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Diversos