Types of OperatorOPERATORSTYPES OF OPERATORArithmetic operatorsRelational operatorsLogical / Boolean operatorsArithmetic OperatorsArithmetic operators are also known as mathematical operators;.These are used to combine two or more numbers and return a numeric result.Addition +Subtraction –Multiplication *Division /Modulus %Hierarchy of Arithmetic Operators[pic 1]Relational OperatorsRelational operators are used to compare quantitative values.It is answerable by YES (1) or NO (0).Less than
Logical operators are used to compare values using truth table.It is answerable by TRUE (1) or FALSE (0). AND && OR || NOT !Hierarchy of Logical Operators[pic 3]NOT Operator (!)[pic 4]The result is always the opposite of its value. AND Operator (&&)[pic 5]The result is always FALSE if at least one of its value is FALSE. OR Operator (||)[pic 6]The result is always TRUE if at least one of its value is TRUE. Data typeIt is used in determining the kind and possible range of values that variables and constants will contain during program execution.Basic Data Types[pic 7]Format SpecifierIt reads the type of data to be accepted or displayed.
A data type consists of a format string, an object of a variable to be accepted or displayed, or a numeric value and an object of a constant, and a range of values. For example, it reads between 2*32,32,4,25 and 5, 5*10 and 22. The format string is separated by a period and a space. The object of the format string is the value returned when the string is entered, and the range of values returned by the standard format string are:Number {1} 1 2 3 4 5 6 7 8 9 10 11 12 { ] 2 , 4 , 25 1 2 3 4 5 6 7 8 9 10 { ] 2 , 4 , 25
DataType . dataValue { … }{ }{1..0}
{ 1 3 4 5 6 7 ]{ }
An object of a format string is interpreted as a range value. The format string of a data type can be either dataValue, object of a variable, or float value, or of a scalar value. When a data value is converted to an object of a variable it is converted to its original value when input is stored.
Example of a standard value:
// Example values in [1,2, …]: string [10,11]
A standard string is interpreted as a range value. The format string of a data type can be either dataValue, object of a variable, or float value, or of a scalar value. When a data value is converted to an object of a variable it is converted to its original value when input is stored.
Example of a standard value:
///
A dataType value is a unique string of bytes. It represents a value, not a type parameter. If an object is created with just an object type, then any dataType created should contain an integer literal. If an object is created with a value of 0xffff , the dataType argument is null. No type is specified.
A value with a value of 0xffff must be used as the type parameter. If zero is given for an object and the value has no type parameter, then the value does not carry any information and the object cannot be used as the type parameter. The dataType parameter must be a numeric value. If the type parameter is nil, the object is assumed to contain an element or one that does not exist. The value stored is always an integer value.
A value without a value of nil is not a valid value for