Things I was never aware of: C++. Comma operator.

In C++ comma "," can be used in two ways. First, as an operator:
expression1,expression2
Evaluation is from left to right. Expression on the left is evaluated first. Expression on the right is evaluated second giving the result of the whole expression.
Second, as a separator, e.g. in a list of function arguments.

Advertisements
This entry was posted in C++, Interview, Programming and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s