Re: Hi a strange code ....
- From: Ben Pfaff <blp@xxxxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 12:48:48 -0700
dhaval.bhanu@xxxxxxxxx writes:
if(i,j,k)
This is the "comma operator". The comma operator evaluates its
left-hand operand, then its right-hand operand. Its result is
the value of the right-hand operand. It is most often used in
the expressions in a "for" statement.
If the left-hand operand to a comma operator has no side effect,
as here, then there's no point to doing it at all. When I was
new to the C language, this first surprised me when I was trying
to access a multidimensional array element: a[1,2] is quite
different from a[1][2].
--
"IMO, Perl is an excellent language to break your teeth on"
--Micah Cowan
.
- References:
- Hi a strange code ....
- From: dhaval . bhanu
- Hi a strange code ....
- Prev by Date: Re: Hi a strange code ....
- Next by Date: Re: strange output
- Previous by thread: Re: Hi a strange code ....
- Next by thread: Re: Hi a strange code ....
- Index(es):
Relevant Pages
|