(a) What is the difference between / and % operator
(b) State the difference between while and do while loop.
(c) Write a difference between unary and binary operator.
Answers
Answered by
0
Answer:
A) The difference between / and % is
/ is used to do division (arthamatic operation)
Where as % is used to find mod(remainder of division) even this operation comes under arthamatic operators
B) the difference between while loop and do while loop is
While loop will be executed only when the given condition is true
Where as do while loop execute at least one time even is the condition is not true(false) and then checks the condition for further repeating of the loop and in do while we use (;) symbol after the while loop condition
C) Operators that operate on two operands are known as binary operators. Operators that operate on one operand are known as unary operators
Similar questions
CBSE BOARD XII,
3 months ago
Math,
3 months ago
English,
3 months ago
Biology,
6 months ago
Social Sciences,
6 months ago