tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sizeof(type)



May I use the wisdom of this list for a question that is not NetBSD-related?

Why does C's sizeof operator need parentheses when applied to a type?

A colleague argued that this resembles the typecast syntax (like typecasting 
nothing to the type in question).
I suspect some ambiguity without the parentheses, but I fail do make up one.


Home | Main Index | Thread Index | Old Index