- 3
What is sizeof in c programming
5 Réponses
+ 4
Aditya,
Please search the forum first before posting new question. This topic has been discussed before, so it would be nice not to post a duplicate thread 👍
+ 2
Sizeof() returns the size of a variable. When sizeof() is used with the data types, it simply returns the amount of memory allocated to that data type.
+ 1
MD. Ferdous Ibne Abu Bakar Sizeof is an operator, not a function. It is not required to use parentheses (except for data types), e.g int a; 'sizeof a' will give 4.
0
I think this post is a duplicate, btw, sizeof is an operator, not a function.