Hi All, I am newbie in this. Is this function declaration right, as it has bit as parameter, void myfunc(unsigned char,bit);
Ashutosh
At least 99.999% of existing code would not look like that ;)
Make that 100% round here...
It is very long between each time I see anyone use sizeof as an operator instead of treating it as a function.
Out of "compatibility", I use it as a function just to avoid questions.
... I use it as a function just to avoid questions.
On the other hand, the non-parenthesized version, when used, is an immediate clue that sizeof's operand is not a type. It is a subjective matter whether an individual or shop puts any value on that language feature.