G
G Patel
Hi,
I've read a book on C, and I understand how comma operators work, but
my book didn't say that the comma operators between function arguments
were not really comma operators (even though it seems obvious to me
that comma operators would serve no purpose between function
arguments). As per C, are those commas in function argument lists the
same comma operators?
Also, are the =s used in initializations the same as any other
=assignment operator? I know some people keep saying 'initializations
and assignments are different!' But if they are truly different, then
the = used with initializations are not really 'assignment' operators.
So are they the same operator? If yes, then why do people complain that
initializations and assignments are different?
To me the following seem the same at execution time:
int a = 4;
vs.
int a;
a=4;
I've read a book on C, and I understand how comma operators work, but
my book didn't say that the comma operators between function arguments
were not really comma operators (even though it seems obvious to me
that comma operators would serve no purpose between function
arguments). As per C, are those commas in function argument lists the
same comma operators?
Also, are the =s used in initializations the same as any other
=assignment operator? I know some people keep saying 'initializations
and assignments are different!' But if they are truly different, then
the = used with initializations are not really 'assignment' operators.
So are they the same operator? If yes, then why do people complain that
initializations and assignments are different?
To me the following seem the same at execution time:
int a = 4;
vs.
int a;
a=4;