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

for — loop with initialization, condition, and update

The for loop combines initialization, condition checking, and an update. It repeats a loop body, possibly zero times, and can limit a control variable's scope to the loop.

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

_Generic — selection by type

_Generic selects an expression by compatible type rather than value; its controlling expression is not evaluated.

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

goto — jump to a label

The goto statement unconditionally transfers control to a named label in the same function, including out of nested loops.

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

if — conditional statement

The `if` statement selects a branch based on a condition. An optional `else` handles the false case.

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

_Imaginary — optional imaginary types

_Imaginary specifies a type holding a purely imaginary value. Support is optional: selecting C23 mode alone does not guarantee availability.

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

inline — function specifier

`inline` suggests fast calls but does not force inline expansion. It also affects function-definition rules.

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

nullptr — null pointer constant

In C23, nullptr denotes a null pointer constant with its own type, distinct from pointer and arithmetic types.

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

register — storage-class specifier

register suggests fast access but does not guarantee a CPU register. It also restricts taking an object's address.

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

restrict — restricting aliasing

restrict qualifies a pointer and imposes requirements on object access. Violating these requirements causes undefined behavior.

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

return — ending a function

The return statement ends the current function call. It can deliver a result to the caller according to the function's return type.

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

signed — signed integer types

The signed keyword specifies a signed integer type. On its own, signed means signed int, which is int.

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

static — storage duration and linkage

The meaning of static depends on context: a persistent local object, internal linkage, or a required argument-array size.

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

static_assert — compile-time assertion

static_assert checks a constant condition during program translation rather than testing it at runtime.

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

struct — structure type

The struct keyword defines or names a structure type that groups named members, potentially of different types.

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

switch — selection by integer value

switch transfers control to a matching case label or the optional default. Labels do not stop execution; break exits the statement.

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

true — Boolean constant in C23

In C23, true is a keyword representing a constant of type bool with value 1. It does not require the <stdbool.h> header.

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

typedef — a type alias

The typedef keyword gives a type an additional name. It creates neither a distinct type nor an object.

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

typeof — type specifier

In C23, typeof lets a declaration use the type of an expression or a type name while preserving qualifiers.

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

typeof_unqual — an unqualified type

C23 typeof_unqual derives a non-atomic, unqualified type from an expression or a type name.

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

union — shared member storage

The union keyword defines a type whose members share storage. Unlike struct, it does not retain their independent values simultaneously.

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

unsigned — unsigned integer types

The unsigned keyword specifies an unsigned integer type. Used alone, unsigned means unsigned int.

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

volatile — type qualifier

volatile preserves required object accesses but does not provide atomicity or thread synchronization.

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