C++ Variable assignments

Assignment operations

After you declare a variable, you can assign value to variables.

** Be careful when you use auto type variables.

  • compiler will not give error but will store some garbage value which we are not intended to storage.

Comma operator

comma operator – evaluates from left to right.

The result of comma operator is the result of the last expression.