I have read a post on C
before here on SO. I have forgotten what it was about, but definitely was not about what I would like to ask here - sizeof
.
It was argued between 2 answerers in the comment section. It was a heated debate between the two but an explanation was never explicitly uttered.
I have tried to find it for two days, but I have not been able to locate it, hence my question here. And Googling didn't generate any result regarding this.
Focus: sizeof()
or sizeof ()
or just sizeof
So there are basically 2 types of these people regarding this:
First group:
A scholar who swears by the name of Ritchie and never will drive a car because he tries to register his license plate with:
sizeof ()
with a space between sizeof
and ()
and the government (in some countries this - ()
- is allowed in license plates) won’t allow the empty space between numbers/letters.
Second group:
Every once in a while a decorated C veteran with a tie-dyed shirt who would reply you like so when asked: „I really don’t know man, what’s the difference? I don’t even know what the deal is. I don't even remember.. Those Ivy Lea…. sizeof()
, sizeof ()
or just sizeof
, me no worry, man. “
So, should sizeof
be written with a space between sizeof
and its ()
or even without the ()
or really it doesn’t matter?
I welcome explanations from C experts and scholars. Those who don’t quite fit into the aforementioned types - the self-taught C
Bobs and Marys - with „C99 and Ritchie“ tattooed on his/her arm are also welcomed.
It doesn’t hurt me either ways but I am just curious whether or not if it is a „standard“ to put a space between sizeof
and ()
or even one without ()
.
Or are they really all the same - would be interesting to me.