At 22:44 2007-05-02, SUMAN wrote:
>hi,
>why is sizeof() is called as an operator even though it lloks like an
>function taking an argument.?

it isn't always
int x;
float y;
x = sizeof y;

is perfectly legal

that you often see   x = sizeof(y);   is no different than someone 
writing   y = (x) + (x);

otoh, if what you're using as an argument is a type, you _must_ use the parens.

as in   x = sizeof (double);


>thanks & regards,
>suman
>
>
>[Non-text portions of this message have been removed]
>
>
>
>To unsubscribe, send a blank message to 
><mailto:[EMAIL PROTECTED]>.
>Yahoo! Groups Links
>
>
>

Victor A. Wagner Jr.      http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law" 

Reply via email to