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. |
This is a brief reference of available C constructs.
Inhaltsverzeichnis |
[Bearbeiten] Allgemeine Themen
[Bearbeiten] Preprocessor
[Bearbeiten] Kommentare
[Bearbeiten] Keywords
[Bearbeiten] ASCII-Tabelle
[Bearbeiten] Escape-Sequenzen
[Bearbeiten] Geschichte der C
[Bearbeiten] Flusskontrolle
[Bearbeiten] Bedingte Ausführung Aussagen
Different code paths are executed according to the value of given expression
- if führt Code bedingtOriginal:if executes code conditionallyThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - switch führt Code entsprechend dem Wert eines ganzzahligen ArgumentOriginal:switch executes code according to the value of an integral argumentThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten] Iterationsanweisungen
The same code is executed several times
- for executes loop
- while führt Schleife, die Überprüfung Zustand vor jeder IterationOriginal:while executes loop, checking condition before each iterationThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - führt Schleife, die Überprüfung Zustand nach jeder IterationOriginal:do-while</div> executes loop, checking condition after each iterationOriginal:do-whileThe 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.
[Bearbeiten] Gehe Aussagen
Continue execution at a different location
- continue überspringt den restlichen Teil des Körpers umgebende SchleifeOriginal:continue skips the remaining part of the enclosing loop bodyThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - break beendet die umschließende SchleifeOriginal:break terminates the enclosing loopThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - goto wird die Ausführung an einem anderen OrtOriginal:goto continues execution in another locationThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - return beendet die Ausführung des umschließenden FunktionOriginal:return terminates execution of the enclosing functionThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten] Funktionen
The same code can be reused at different locations in the program
- <div class="t-tr-text"> Funktion Erklärung</div> declares a functionOriginal:function 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. - <div class="t-tr-text"> inline-Spezifizierer</div> hints the compiler to insert a function's body directly into the calling codeOriginal:inline 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.
[Bearbeiten] Types
- <div class="t-tr-text"> Grundtypen</div> defines basic character, integer and floating point typesOriginal:fundamental typesThe 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. - <div class="t-tr-text"> Zeigertypen</div>, holding a memory locationOriginal:pointer typesThe 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. - <div class="t-tr-text"> zusammengesetzte Typen</div> defines types, holding several data members (essentially the same as class)Original:compound typesThe 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. - <div class="t-tr-text"> Aufzählungstypen</div> defines types, that are able to hold only one of the specified valuesOriginal:enumeration typesThe 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. - <div class="t-tr-text"> union-Typen</div> defines types, that can hold data in several representationsOriginal:union typesThe 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. - definieren Funktionsaufruf Unterschriften, das ist die Art von Argumenten und die Rückgabe-TypOriginal:Funktionstypen</div> define function call signatures, that is the types of arguments and the return typeOriginal:function typesThe 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.
[Bearbeiten] Specifiers
- <div class="t-tr-text"> cv Planer</div> specifies 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. - <div class="t-tr-text"> Storage-Class-Planer</div> specifies 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. - gibt an, dass der Speicher für die Variable durch bestimmte Menge (Seit C99) ausgerichtet werden sollOriginal:alignas Spezifizierer</div> specifies that the storage for the variable should be aligned by specific amount (Seit 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.
[Bearbeiten] Literale
Literals are the tokens of a C program that represent constant values, embedded in the source code.
- sind dezimal, oktal oder Hexadezimalzahlen vom Typ Integer .Original:Integer-Literale</div> are 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. - <div class="t-tr-text">Zeichenliterale</div> are individual characters of type char, char16_t, char32_t, or wchar_t.Original: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. - sind Werte vom Typ float, double oder long doubleOriginal:Fließkomma-Literale</div> are values of type float, double, or long doubleOriginal: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.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - <div class="t-tr-text">Zeichenfolgenliterale</div> are 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. - <div class="t-tr-text">boolean Literale</div> are values of type bool, that is true and false (Seit C99)Original: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. - sind konstante Werte der vom Benutzer angegebenen Typs (Seit C99)Original:Literale Benutzer definiert werden</div> are constant values of user-specified type (Seit 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.
[Bearbeiten] Expressions
You can help to correct and verify the translation. Click here for instructions.
- <div class="t-tr-text">Reihenfolge der Auswertung</div> of 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 erlauben die Verwendung der Syntax in der Mathematik allgemein gefundenOriginal: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 | ||||||
---|---|---|---|---|---|---|
Abtretung an | incrementNJdecrement | Arithmetik | logisch | Vergleich | memberNJaccess | andererseits |
a = b |
++a |
+a |
!a |
a == b |
a[b] |
a(...) |
- <div class="t-tr-text"> Operatorvorrang</div> the 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. - <div class="t-tr-text"> alternative Darstellungen</div> alternative 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.
[Bearbeiten] Utilities
You can help to correct and verify the translation. Click here for instructions.
- <div class="t-tr-text"> typedef Deklaration</div> creates 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. - <div class="t-tr-text"> Attribute</div> defines additional information about variable (Seit 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.
- impliziten Konvertierungen von einem Typ in einen anderenOriginal:Standard-Konvertierungen</div> implicit 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.