Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / C

Knowledge base — C

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 472

C

<uchar.h> — Unicode utilities

The <uchar.h> header provides Unicode code-unit types and functions that convert between the corresponding UTF formats and the multibyte encoding of the current LC_CTYPE locale.

Intermediate · C23; repository compiler flag, production runtime not attested
C

The <wchar.h> header — wide characters and WEOF

The <wchar.h> header provides wide-character and wide-string operations and multibyte conversions. WEOF signals conditions including the end of input.

Basic · C23; repository compiler flag, production runtime not attested
C

alignas — alignment specifier

alignas specifies object or member alignment. In C23 it is a keyword; _Alignas remains an obsolescent spelling.

Intermediate · C23; repository compiler flag, production runtime not attested
C

alignof — type alignment requirement

The alignof operator queries a type's alignment requirement, not its size. _Alignof is an alternative spelling.

Basic · C23; repository compiler flag, production runtime not attested
C

_Atomic — atomic types

_Atomic declares an atomic type. It provides indivisible operations, but does not make an entire sequence of actions atomic.

Intermediate · C23; repository compiler flag, production runtime not attested
C

auto: type inference and automatic storage duration

In C23, `auto` enables type inference from an initializer. With an explicit type at block scope, it retains its traditional meaning.

Basic · C23; repository compiler flag, production runtime not attested
C

_BitInt — bit-precise integers

C23 introduces _BitInt(N): an integer type with a specified width, either signed or unsigned.

Intermediate · C23; repository compiler flag, production runtime not attested
C

bool — Boolean type

In C23, bool is the Boolean type keyword; _Bool denotes the same type. The <stdbool.h> header is unnecessary.

Basic · C23; repository compiler flag, production runtime not attested
C

break — exit a loop or switch

The break statement exits the innermost enclosing loop or switch. It does not exit the function or every nested loop.

Basic · C23; repository compiler flag, production runtime not attested
C

case — a value label in switch

The case keyword marks an entry point in a switch statement for a particular integer constant value. A label does not end a branch: without a control transfer, execution continues into subsequent code.

Basic · C23; repository compiler flag, production runtime not attested
C

_Complex — complex number types

_Complex forms floating-point complex types that store real and imaginary components. Support is optional.

Intermediate · C23; repository compiler flag, production runtime not attested
C

const — type qualifier

const prevents modification through a qualified expression; with pointers, it can qualify the pointed-to object or the pointer itself.

Basic · C23; repository compiler flag, production runtime not attested
C

continue — skip the rest of an iteration

The continue; statement skips the rest of the current iteration of the innermost loop without terminating that loop.

Basic · C23; repository compiler flag, production runtime not attested
C

_Decimal128 — decimal floating-point type

_Decimal128 denotes an optional C23 decimal floating-point type with 34 digits of precision. Literals of this type use the DL or dl suffix.

Intermediate · C23; repository compiler flag, production runtime not attested
C

_Decimal32 — decimal floating-point type

_Decimal32 is an optional C23 decimal floating-point type with 7-digit precision. Literals with the df or DF suffix have this type.

Intermediate · C23; repository compiler flag, production runtime not attested
C

_Decimal64 — decimal floating type

_Decimal64 denotes a C23 decimal floating type. Its availability depends on the implementation.

Intermediate · C23; repository compiler flag, production runtime not attested
C

default — fallback alternative

The default keyword provides a fallback in switch or _Generic: respectively for an unmatched value or type.

Basic · C23; repository compiler flag, production runtime not attested
C

do — post-test loop

The do keyword starts a do-while loop: the body executes first, and the condition is checked afterward.

Basic · C23; repository compiler flag, production runtime not attested
C

else — the alternative branch of if

The `else` keyword introduces the branch executed when the associated `if` condition compares equal to zero. It has no condition of its own and cannot stand alone. Braces help make its association with an `if` unambiguous.

Basic · C23; repository compiler flag, production runtime not attested
C

enum — enumerated type

enum defines an enumerated type and named integer constants. C23 also allows an enumeration's underlying type to be specified explicitly.

Basic · C23; repository compiler flag, production runtime not attested
C

extern — declarations and linkage

extern declares objects or functions; it does not automatically mean a definition or a location in another file.

Intermediate · C23; repository compiler flag, production runtime not attested
C

false — Boolean false constant

In C23, false is a keyword representing a constant of type bool with value 0. It requires no <stdbool.h> header.

Basic · C23; repository compiler flag, production runtime not attested