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/>
This is a brief reference of available C constructs.
Allgemeine Themen
Preprocessor
Kommentare
Keywords
ASCII-Tabelle
Escape-Sequenzen
Geschichte der C
Flusskontrolle
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.
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. - do-whileführt Schleife, die Überprüfung Zustand nach jeder 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.Original:do-whileexecutes 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.
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.
Funktionen
The same code can be reused at different locations in the program
- Funktion Erklärungdeclares 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. - inline-Spezifiziererhints 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.
Types
- Grundtypendefines 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. - Zeigertypen, 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. - zusammengesetzte Typendefines 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. - Aufzählungstypendefines 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. - union-Typendefines 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. - Funktionstypendefinieren Funktionsaufruf Unterschriften, das ist die Art von Argumenten und die Rückgabe-TypOriginal: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.Original:Funktionstypendefine 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.
Specifiers
- cv Planerspecifies 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. - Storage-Class-Planerspecifies 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 Spezifizierergibt an, dass der Speicher für die Variable durch bestimmte Menge (Seit C99) ausgerichtet werden sollOriginal: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 Spezifiziererspecifies 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.
Literale
Literals are the tokens of a C program that represent constant values, embedded in the source code.
- Integer-Literalesind dezimal, oktal oder Hexadezimalzahlen vom Typ Integer .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:Integer-Literaleare 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. - Zeichenliteraleare 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. - Fließkomma-Literalesind Werte vom TypOriginal: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,doubleoderlong doubleOriginal:Fließkomma-Literaleare 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. - Zeichenfolgenliteraleare 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. - boolean Literaleare 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(Seit C99) - Literale Benutzer definiert werdensind konstante Werte der vom Benutzer angegebenen Typs (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.Original:Literale Benutzer definiert werdenare 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.
Expressions
You can help to correct and verify the translation. Click here for instructions.
- Reihenfolge der Auswertungof 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 |
|
|
|
|
|
|
|
|
- Operatorvorrangthe 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. - alternative Darstellungenalternative 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.
Utilities
You can help to correct and verify the translation. Click here for instructions.
- typedef Deklarationcreates 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. - Attributedefines 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.
- Standard-Konvertierungenimpliziten Konvertierungen von einem Typ in einen anderenOriginal: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:Standard-Konvertierungenimplicit 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.