Operator |
Description |
Example |
---|---|---|
. |
Structure member dereference. |
|
-> |
Pointer to structure member dereference. |
|
, |
Comma operator. In a list of expressions, causes use of the right-most expression. The comma operator also strings together operations. |
Results in for |
? |
Conditional operator.
where |
“c” = 1 if “a” is greater than “b”, and “c” = -1 if “a” is less than “b”. |
sizeof |
Computes the size, in bytes, of a datatype or variable. |
|
/* ... */ |
Multiple line comment indicator. Everything between /* */ is commented out. |
|
// |
Single line comment indicator. Everything from the // to the end of the line is commented out of the code. |
|
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |