How are arguments passed in small brackets processed in C? -


this question has answer here:

for following code:

int main(void) {     int x = 1000, y = 5000;     printf ("%d\n", x, y);     printf ("%d\n", (x, y));     return 0; } 

output: 1000 5000

can please explain this?

its operator precedence.
in case of (x,y) first statement inside () evaluated last value y taken result (). without () comma operators have equal precedence evaluation takes left right x value taken printf()


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -