comp.lang.c
[Top] [All Lists]

Re: Is cast operator unary or binary? How many operands?

Subject: Re: Is cast operator unary or binary? How many operands?
From: Richard Tobin
Date: 30 Apr 2008 12:36:08 GMT
Newsgroups: comp.lang.c

In article <f6c6e3fe-d076-43be-9cb8-4d29da011908@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
JoseMariaSola  <JoseMariaSola@xxxxxxxxx> wrote:

>> >But in the case of cast the (only) operand is the expression the left,
>> >not the type-name.

[...]

>So both following expressions have one operator and one operand?
>  sizeof(int)
>  (int)x

*I* dont' consider it that way.  I was just exploring the consequences
of your suggestion.  I would say that they have one and two operands
respectively.

-- Richard
-- 
:wq

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy