what is sizeof | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is sizeof

In c programming

24th Apr 2021, 10:52 PM
Melu
Melu - avatar
1 Answer
+ 3
Hey Melu It is a compile time unary operator which can be used to compute the size of its operand. The result of sizeof is of unsigned integral type. sizeof can be applied to any data-type, including primitive types such as integer and floating-point types, pointer types, or compound datatypes such as Structure, union etc.
25th Apr 2021, 2:30 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar