Electron microscopy
 
Comma Operator in DM
- Practical Electron Microscopy and Database -
- An Online Book -
Microanalysis | EM Book                                                                                   http://www.globalsino.com/EM/        


=================================================================================

 

An interesting DM (as well as C++) operator is the comma. Some examples of the comma operator has been seen in the FOR loop, where it has been used to allow multiple initialization or incrementation statements. In fact, the comma can be used as a part of any expression. The purpose of the comma operator is to string together several expressions. The value of the comma-separated list of expressions is the value of the right-most expression. The values of the other expressions will actually be discarded. Therefore, the expression on the right side will become the value of the entire comma-separated expression.

The comma’s effect is essentially to cause a sequence of operations to be performed.

 

 

 

 

 

 

 

=================================================================================