- 3

What is sizeof in c programming

17th Nov 2020, 5:59 AM
Aditya
4 Answers
+ 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 👍
17th Nov 2020, 6:16 AM
Ipang
+ 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.
17th Nov 2020, 6:12 AM
Pawan
+ 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.
17th Nov 2020, 7:30 AM
LastSecond959
LastSecond959 - avatar
0
I think this post is a duplicate, btw, sizeof is an operator, not a function.
17th Nov 2020, 6:27 AM
LastSecond959
LastSecond959 - avatar