c - What i = 1, 23 ;means. -
this question has answer here:
- uses of c comma operator [duplicate] 20 answers
- how comma operator work during assignment? 5 answers
this funny thing happened when make mistake .
i write :
int i;
i = 1;
but is
int ;i = 1 ,23;
(i guess sometime click middle button of mouse) .
then compiled program gcc , went through without warning or error!
and after notice . try int = 1,23;
, , compile give error:
error: expected identifier or ‘(’ before numeric constant
so ,why first time compile suceessful ?
and why give me error second time?
what ", 23" means?
thanks in advance.
Comments
Post a Comment