Everything About ___
Live briefing

Everything about Sizeof

Storage size operator in C and C++

sizeof is a unary operator in the C and C++ programming languages that evaluates to the storage size of an expression or a data type, measured in units sized as char. Consequently, the expression sizeof(char) evaluates to 1. The number of bits of type char is specified by the preprocessor macro CHAR_BIT, defined in the standard include file <limits.h>. On most modern computing platforms this is eight bits. The result of sizeof is an unsigned integer that is usually typed as size_t. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: SizeofA 5-minute orientation
  2. Pick up a classic book: C How to ProgramThe most-reprinted book on the subject
  3. Read the landmark paper: Evaluation of Mobility and Appearance According to Gusset Sizeof Bodice and Sleeve PatternCited 1 times
  4. Go sideways: C syntaxA closely related topic
  5. Go sideways: Comparison of Pascal and CA closely related topic

📖 Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. Purpose
  2. Use
  3. Implementation

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics