C Language Zemi

  • C language
  • here

C type

This is an introduction to the types used in C language.

Type that expresses characters

  • char --Type that represents a character
  • char * --Type that represents a string

Traditional integer type

  • Traditional C language integer type
  • int type --signed integer type of 16 bits or more

Integer type that guarantees the width and signing / unsigned introduced in C99

  • int8_t --Signed 8-bit integer type
  • int16_t --Signed 16bit integer type
  • int32_t --Signed 32-bit integer type
  • int64_t --Signed 64-bit integer type
  • uint8_t --Unsigned 8bit integer type
  • uint16_t --Unsigned 16bit integer type
  • uint32_t --Unsigned 32bit integer type
  • uint64_t --Unsigned 64-bit integer type

Floating point type

  • float --single precision (32bit) floating point type
  • double-double precision (64bit) floating point type

Size type

  • size_t type --Size representation type

General-purpose pointer type

  • General-purpose pointer type --void *

Integer type that can be converted to and from a pointer

  • inpttr_t --Signed integer type of pointer type size
  • uintptr_t --Pointer type size unsigned integer type

A special type that means it doesn't exist

  • void type-a special type that means it doesn't exist

Associated Information

This site is originally Japanese.
Perl Club starts to translate it to English.
If you find wrong expressions, you can report them using Github Issue.
Perl Club