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
- Read the overview: SizeofA 5-minute orientation
- Pick up a classic book: C How to ProgramThe most-reprinted book on the subject
- Read the landmark paper: Evaluation of Mobility and Appearance According to Gusset Sizeof Bodice and Sleeve PatternCited 1 times
- Go sideways: C syntaxA closely related topic
- Go sideways: Comparison of Pascal and CA closely related topic
📖 Definitions
No dictionary entry for this exact phrase.
🗂️ The subject at a glance
🏆 Landmark papers (most cited)
📚 Books worth reading
C How to ProgramPaul J. Deitel, Harvey M. Deitel · 2007
Introduction to C ProgrammingReema Thareja · 2013
Introduction to computing systemsYale N. Patt, Sanjay J. Patel · 2003- 📕School size and performance in examinationsSteve Bradley
- 📕Struktur und Tätigkeit der Industrie · 1992
Programmeren Compendium Makkelijk LerenWalter Ostendorf · 2013
Kurs in der Programmiersprache CThomas Theis · 2013
Ranked by number of editions on Open Library, a rough measure of how lasting a book is.
🔗 Related topics
- C syntax C syntax is the form that text must have in order to be C programming language code. The language syntax rules are designed to allow for code that is terse…
- Comparison of Pascal and C The computer programming languages C and Pascal have similar times of origin, influences, and purposes. Both were used to design (and compile) their own…
- Struct (C programming language) In the C programming language, struct (referring to a structure) is the keyword used to define a composite, a.k.a. record, data type – a named set of values…
- C data types In the C programming language, data types constitute the semantics and characteristics of storage of data elements. They are expressed in the language…
- Type punning In computer science, type punning is any programming technique that subverts or circumvents the type system of a programming language in order to achieve…
- Pointer (computer programming) I do consider assignment statements and pointer variables to be among computer science's "most valuable treasures." — Donald Knuth, Structured Programming…
- C++ classes A class in C++ is a user-defined type or data structure declared with any of the keywords class, struct or union (the first two are collectively referred…
- Compatibility of C and C++ The C and C++ programming languages are closely related but have many significant differences. C++ began as a fork of an early, pre-standardized C, called…