How many arguments a Unary Operator take Can we make a binary-00744
This subjective question is related to the book/course vu cs502 Fundamentals of Algorithms. It can also be found in vu cs502 Mid Term Solved Past Paper No. 1.
Question 1: How many arguments a Unary Operator take. Can we make a binary operator as unary operator?
Answer:
Unary operator takes only one argument like i++ or i- (Post increment or post decrement operators for integers) or ++i,--i (Pre increment or pre decrement operators for integers) ,we can not make Unary operator as binary or binary as Unary operator. Page. No. 3/15