0% found this document useful (0 votes)
33 views1 page

C Language

The document provides a reference of core constructs in the C programming language, including comments, data types, expressions, declarations, statements, functions, keywords and the preprocessor. It also discusses concepts like pointers, arrays, structures, unions, enumerations and more.

Uploaded by

Ramkumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

C Language

The document provides a reference of core constructs in the C programming language, including comments, data types, expressions, declarations, statements, functions, keywords and the preprocessor. It also discusses concepts like pointers, arrays, structures, unions, enumerations and more.

Uploaded by

Ramkumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

C language

This is a reference of the core C language constructs.

Basic concepts Expressions Declarations

Comments
Value categories
Pointers -
Arrays

ASCII chart
Evaluation order and sequencing
Enumerations

Character sets
Constants and literals
Storage duration and Linkage

Translation phases
  Integer constants
const - volatile - restrict(C99)

Punctuation
  Floating constants
struct - union -
Bit fields

Identifier -
Scope -
Lifetime
  Character constants
_Alignas(C11) -
typedef

Lookup and Name Spaces


  true/false(C23)
_Static_assert(C11)

Type - Arithmetic types


  nullptr(C23)
Atomic types(C11)

Objects and Alignment


  String literals
External and tentative definitions

The main function


  Compound literals(C99)
Attributes(C23)

As-if rule
Constant expressions

Undefined behavior
Implicit conversions
Functions
Memory model and Data races
Operators

  Member access and indirection


Function declaration

Keywords   Logical -
Comparison
Function definition

  Arithmetic -
Assignment
inline(C99)

Preprocessor   Increment and Decrement


_Noreturn(C11)(deprecated in C23)

  Call, Comma, Ternary


Variadic arguments

#if - #ifdef - #ifndef - #elif


  sizeof - _Alignof(C11)

#elifdef - #elifndef(C23)
  Cast operators
Miscellaneous
#define - # - ##
Operator precedence

#include -
#pragma
Generic selection(C11)
History of C

#line -
#error
Conformance

#warning(C23) Initialization Inline assembly

Signal handling

Statements Scalar
Analyzability(C11)

Array

if -
switch
Structure/Union

for

while - do-while

continue -
break

goto -
return

See also

C++ documentation for C++ language constructs

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/language&oldid=142134"

You might also like