Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Knowledge base

Knowledge base

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

Entries: 5788

C

nullptr_t — the type of nullptr

In C23, nullptr_t from <stddef.h> names the type of nullptr, distinct from pointer and arithmetic types.

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

ptrdiff_t — pointer difference type

ptrdiff_t is the signed integer type for pointer subtraction. It measures distance in elements, not bytes.

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

short — short integer type

short is a signed integer type equivalent to short int. It need not occupy exactly two bytes.

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

size_t — a type for sizes and counts

size_t is the unsigned integer type returned by sizeof. Use it for object sizes and element counts.

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

uint64_t — exactly 64-bit unsigned integer type

uint64_t from <stdint.h> stores values from 0 to 18446744073709551615. Availability of this exact-width type depends on the implementation.

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

uint8_t — unsigned 8-bit integer type

uint8_t from <stdint.h> stores values 0–255 in exactly 8 bits. Availability of this type depends on the implementation.

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

unsigned char — an unsigned byte

unsigned char is an unsigned integer type occupying one C byte; a byte need not contain eight bits.

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

unsigned int — unsigned integers

unsigned int stores values from 0 to UINT_MAX. Arithmetic in this type wraps rather than reporting an out-of-range result.

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

unsigned long — unsigned integer type

unsigned long stores nonnegative integers. ULONG_MAX specifies its maximum value; its width is not fixed.

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

unsigned long long type

unsigned long long is an unsigned integer type with at least 64 value bits and modular arithmetic.

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

The unsigned short type

unsigned short is an unsigned integer type with a range of at least 0–65535; it need not be exactly 16 bits wide.

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

The void type

void represents the absence of a value. It appears as a function return type, a marker for no parameters, and part of the pointer type void *.

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

std::convertible_to — consistent implicit and explicit conversion

std::convertible_to<From, To>, declared in <concepts>, requires both implicit conversion and conversion through static_cast to To, with consistent results. Merely supporting an explicit cast is not sufficient.

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

std::accumulate: a left fold over a range

std::accumulate combines a half-open range with an initial value and returns the final accumulator. The type of init affects the type and precision of every step.

Intermediate · C++23
C++

std::align_val_t — the memory-alignment argument type

std::align_val_t from <new> carries a required alignment to allocation and deallocation overloads. It is a distinct enumeration type that lets overloads distinguish an alignment argument from a storage-size argument.

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