12.07.2015 Views

User's Manual SiteView – Data Logger Software

User's Manual SiteView – Data Logger Software

User's Manual SiteView – Data Logger Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

operand by 1.i--;new Used to create objects and invoke constructors Class1 c = new Class1();+ The + operator can function as either a unary or a Int a;binary operator.a = 5 + 5;Unary + operators are predefined for all numerictypes. The result of a unary + operation on anumeric type is just the value of the operand.Binary + operators are predefined for numeric andstring types. For numeric types, + computes thesum of its two operands. When one or bothoperands are of type string, + concatenates thestring representations of the operands.- The - operator can function as either a unary or abinary operator.! The logical negation operator (!) is a unaryoperator that negates its operand. It is defined forbool and returns true if and only if its operand isfalse.~ The ~ operator performs a bitwise complementoperation on its operand, which has the effect ofreversing each bitInt a;a = 5 – 5;bool val = true;if(!val){}byte a = 0x10;a = ~a;&The & operator can function as either a unary or abinary operator.The unary & operator returns the address of itsoperand.Binary & operators are predefined for the integraltypes and bool. For integral types, & computes thelogical bitwise AND of its operands. For booloperands, & computes the logical AND of itsoperands; that is, the result is true if and only ifboth its operands are true.byte a = 0x10;a = a & 0x01;* The multiplication operator (*), which computesthe product of its operands. Also, the dereferenceoperator, which allows reading and writing to apointer./ The division operator (/) divides its first operandby its second. All numeric types have predefineddivision operators.int a = 1;a = 5 * 10;int a;a = 10 /5;% The modulus operator (%) computes theremainder after dividing its first operand by itssecond. All numeric types have predefined modulusoperators.int a ;a = 10 % 5;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!