Espaces de noms
Variantes

C language

De cppreference.com
< c

<metanoindex/>

 
 
Langage C
Les sujets généraux
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
Commentaires
Mots-clés
Table ASCII
Séquences d'échappement
Histoire de C
Le contrôle de flux
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.
États d'exécution conditionnelles
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.
Des instructions d'itération
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.
Aller déclarations
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.
Fonctions
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
déclaration de la fonction
spécificateur inline
Types
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les prescripteurs
Original:
Specifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
prescripteurs cv
classe de stockage prescripteurs
alignas spécificateur (C99)
Littéraux
Original:
Literals
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Expressions
Original:
Expressions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ordre d'évaluation
les opérateurs alternatifs
opérateurs
la priorité des opérateurs
Utilitaires
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
attributs (C99)
jette
Divers
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Assembleur inline
 

Ceci est une brève référence des constructions disponibles en C.

Sujets généraux

Préprocesseur

Commentaires

Mots-clés

Table ASCII

Séquences d'échappement

Historique du C

Contrôle de flux

Instructions d'exécution conditionnelle

Des chemins de code différents sont exécutés selon la valeur d'une expression donnée

  • if exécute le code de façon conditionnelle
  • switch exécute le code en fonction de la valeur d'un argument entier

Instructions d'itération

Le même code est exécuté plusieurs fois

  • for exécute une boucle
  • while exécute une boucle, en vérifiant une condition avant chaque itération
  • do-while exécute une boucle, en vérifiant une condition après chaque itération

Instructions de saut

L'exécution continue à un endroit différent

  • continue saute la partie restante du corps de la boucle actuelle
  • break termine la boucle actuelle
  • goto continue l'exécution à un autre endroit
  • return termine l'exécution de la fonction actuelle

Fonctions

Le même code peut être réutilisé à différents endroits dans le programme

Types

  • types fondamentaux définissent des types de base : caractère, entier et à virgule flottante
  • types pointeurs, contenant un emplacement mémoire
  • types composés définissent des types contenant plusieurs données membres (essentiellement identiques aux classes)
  • types d'énumération définissent des types capables de contenir seulement une des valeurs spécifiées
  • types unions définissent des types pouvant contenir des données dans plusieurs représentations
  • types fonctions définissent des signatures d'appel de fonction, c'est-à-dire les types des paramètres et le type de retour

Spécificateurs

Littéraux

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

Expressions

Une expression est une séquence d'opérateurs et d'opérandes qui spécifient un calcul. Une expression peut se traduire par une valeur et peuvent causer des effets secondaires .
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
cession incrementNJdecrement arithmétique logique comparaison memberNJaccess autre

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

Utilitaires

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

Divers