(2) Discuss any three types of operators with an example of each.
Answers
Answer:
In computer science, an operator is a character or characters that determine the action that is to be performed or considered.
There are three types of operator that programmers use:
arithmetic operators
relational operators
logical operators
These operators are common to most high-level programming languages.
Arithmetic operators
Computers are designed to carry out calculations. Arithmetic operators allow arithmetic to be performed on values.
Relational operators
Relational operators allow for assignment and enable comparisons to be made. They are used in condition testing.
Logical operators
Logical operators are used to combine relational operators to give more complex decisions.
Answer:
मराठी मध्ये शोधा
प्रत्येकाच्या उदाहरणासह कोणत्याही तीन प्रकारच्या ऑपरेटरची चर्चा करा
There are three types of operator that programmers use: arithmetic operators. relational operators. logical operators.
...
Relational operators.
Relational operation Operator Example
Less than or equal to <= if x <= 5
Greater than > if x > 5
Greater than or equal to >= if x >= 5
Does not equal <> or != If x <> 5 or if x != 5