In C language, sizeof( ) is an operator. Though it looks like a function, it is an unary operator.
For example in the following program, when we pass a++ to sizeof, the expression “a++” is not evaluated. However in case of functions, parameters are first evaluated, then passed to function.
This article is contributed Shivam Gupta. If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
- Operands for sizeof operator
- GFact 22 | (2^x + 1 and Prime)
- GFact 23 | (Brocard’s problem)
- 10 Interesting Facts About Computers
- Can C++ reference member be declared without being initialized with declaration?
- Dilworth's Theorem
- Storage of integer and character values in C
- Vantieghems Theorem for Primality Test
- Cauchy's Mean Value Theorem
- Nesbitt's Inequality
- G-Fact 21 | Collatz Sequence
- G-Fact 20 (Cayley's formula for Number of Labelled Trees)
- G-Fact 19 (Logical and Bitwise Not Operators on Boolean)
- G-Fact 17
Improved By : Shubham_Menkudle