Professional Documents
Culture Documents
Variables: IS104 - Programming Fundamentals and Data Structures Using C
Variables: IS104 - Programming Fundamentals and Data Structures Using C
SYMBOL DESCRIPTION
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus
div Integer division
mode Integer remainder
++/- - Increment and decrement
RELATIONAL – used to determine the relationship of one
quantity to another.
SYMBOL DESCRIPTION
< Less than
<= Less than or equal to
> Greater than
>= Greater than or equal to
== Equal to
!= Not equal to
= Used as assignment
operator
LOGICAL – used to show the ways through which these
relationships can be connected.
SYMBOL DESCRIPTION
&& And
|| Or
! Not
OTHER OPERATORS
SYMBOL DESCRIPTION
+= Plus equal
-= Minus equal
*= Multiply equal
/= Divide equal
%= Modulus equal
COMMENT – text embedded in a program for
documentation purposes. It is usually described
what the program does, who wrote it, why it was
changed, and others.
Example:
/* This program is written by Ms. Aileen P. de Leon */