basic c question

it is not showing any error message.

Just because something compile, it doesn't mean that it works properly.
Check what the comma operator does.