+ 3

Is sizeof() is an operator or function

12th Aug 2019, 6:27 AM
chunduri avinash
chunduri avinash - avatar
2 Respuestas
+ 8
sizeof() is an operator. Check this out for more information: https://stackoverflow.com/questions/1393582/why-is-sizeof-considered-an-operator
12th Aug 2019, 6:46 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
Yes, this doubt is quite a common one. The sizeof() operator, though it looks and works like a function is NOT a function but rather an operator, an operator which exists as a combination of characters. The good thing is, you don't have to include any header file in order to use it... The bad thing is, one can't modify it...
12th Aug 2019, 12:38 PM
Grizzly Gunner
Grizzly Gunner - avatar