On this page
  1. <math.h>, <time.h> & <assert.h>
  2. Contents
  3. Runtime assert & Compile-Time _Static_assert
  4. <math.h> & <time.h>

<math.h>, <time.h> & <assert.h>

Prev: stdint, stdbool & limits | Up: stdlib | Next: compilation_and_internals
Rel: Error Handling & goto cleanup
Ref: cppreference — assert
Tags: #public #prog #c #stdlib


Contents


Runtime assert & Compile-Time _Static_assert

#include <assert.h>
#include <stdint.h>

_Static_assert(sizeof(uint32_t) == 4, "Expected 32-bit uint32_t");

<math.h> & <time.h>

Linked from

Related notes