C language
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
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
- déclaration de fonction déclare une fonction
- spécificateur inline indique au compilateur d'insérer le corps d'une fonction directement dans le code appelant
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
- prescripteurs cvspecifies constness and volatility of a typeOriginal:cv specifiersThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - classe de stockage prescripteursspecifies storage duration and linkage of a typeOriginal:storage-class specifiersThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - alignas spécificateurspécifie que le stockage de la variable doit être aligné par (depuis C99) quantité spécifiqueOriginal:alignas specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.Original:alignas spécificateurspecifies that the storage for the variable should be aligned by specific amount (depuis C99)Original:alignas specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Littéraux
Literals are the tokens of a C program that represent constant values, embedded in the source code.
- littéraux entierssont décimal, octal ou hexadécimal de type entier .Original:integer literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.Original:littéraux entiersare decimal, octal, or hexadecimal numbers of integer type.Original:integer literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - caractères littérauxare individual characters of typeOriginal:character literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.char,char16_t,char32_t, orwchar_t. - littéraux à virgule flottantesont des valeurs de typeOriginal:floating-point literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.float,doubleoulong doubleOriginal:littéraux à virgule flottanteare values of typeOriginal:floating-point literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.float,double, orlong doubleThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - les chaînes littéralesare sequences of characters, which may be narrow, multibyte, or wide.Original:string literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - Les littéraux booléensare values of typeOriginal:boolean literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.bool, that istrueandfalse(depuis C99) - définie par l'utilisateur littérauxsont des valeurs constantes de l'utilisateur spécifié (depuis C99) typeOriginal:user-defined literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.Original:définie par l'utilisateur littérauxare constant values of user-specified type (depuis C99)Original:user-defined literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Expressions
You can help to correct and verify the translation. Click here for instructions.
- ordre d'évaluationof arguments and subexpressions specified the order in which intermediate results are obtained.Original:order of evaluationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - operators permettre l'utilisation de la syntaxe trouve couramment dans les mathématiquesOriginal:operators allow the use of syntax commonly found in mathematicsThe 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 |
|
|
|
|
|
|
|
|
- la priorité des opérateursthe order in which operators are bound to their argumentsOriginal:operator precedenceThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - représentations alternativesalternative spellings for some of the operatorsOriginal:alternative representationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.
Utilitaires
You can help to correct and verify the translation. Click here for instructions.
- déclaration typedefcreates a synonym for a typeOriginal:typedef declarationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - attributsdefines additional information about variable (depuis C99)Original:attributesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.
You can help to correct and verify the translation. Click here for instructions.
- conversions standardconversions implicites d'un type à un autreOriginal:standard conversionsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.Original:conversions standardimplicit conversions from one type to anotherOriginal:standard conversionsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.