initialization

Stephen Clamage steve at taumet.com
Fri Aug 3 02:08:22 AEST 1990


shirono at ssd.csd.harris.com (Roberto Shironoshita) writes:

|> >	int i = a, j = i + 1 ;
|Would the comma (,) separating the two variables (i and j) be considered a
|sequence point then?  Or do we have no guarantees as to the value j is
|initialized to?

A sequence point occurs after an initialization.  A comma as part of
a comma-expression marks a sequence point, but the comma here is not
such a comma.  So this comma could be considered a sequence point in
that it marks the end of the initialization expression.
-- 

Steve Clamage, TauMetric Corp, steve at taumet.com



More information about the Comp.lang.c mailing list