:Re: Sizeof and increment operators

A

Amit Kulkarni

The ISO C standard has carefully defined sizeof so that it can be evaluated
to a constant during parsing.

The operand of a sizeof operator is usually not evaluated
(6.5.3.4).

Regards,

Amit Kulkarni
 
M

Minti

The ISO C standard has carefully defined sizeof so that it can be evaluated
to a constant during parsing.

The operand of a sizeof operator is usually not evaluated
(6.5.3.4).

Regards,

Amit Kulkarni

Huh??
 
M

Mark McIntyre


Read the reference, FCOL.

6.5.3.4 (2)
"If the type of the operand is a variable length array type, the operand is
evaluated; otherwise, the operand is not evaluated and the result is an
integer constant."
 
M

Mark McIntyre

Mark McIntyre wrote:


Read the reference, FCOL.

6.5.3.4 (2)
"If the type of the operand is a variable length array type, the operand is
evaluated; otherwise, the operand is not evaluated and the result is an
integer constant."

Huh?? Why do you think I said "Huh??" at the first place. [/QUOTE]

I think you said Huh? because you didn't understand the point.
BTW could I
borrow your crystal ball. I really really need it to know ahead in what
context the discussion was taking place.

*shrug*. I answered the question you seemd to be asking. If you wanted to
ask a different question, say for instance "how is your remark relevant to
our discussion of pointer arithmetic" or whatever, maybe you should have
asked that instead of grunting.... :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,824
Members
47,370
Latest member
desertedtyro29

Latest Threads

Top