Computer Science, asked by foridull, 1 year ago

What is unary operator?

Answers

Answered by kuldeep222
3

In mathematics, a unary operation is an operation with only one operand, i.e. a single input. This is in contrast to binary operations, which use two operands. An example is the function f : A → A, where A is a set. The function f is a unary operation on A.


foridull: i don't ask for mathematics
kuldeep222: sorry i couldn't see the subject.
kuldeep222: In computer programming, a unary operator is an operator that takes only one value for its operation. An example in the C programming language is the increment operator (++), which increments a given value by 1.
kuldeep222: now ok
foridull: ok
foridull: now on more question
foridull: what are nested for loops?
kuldeep222: you need definition?
foridull: yes
kuldeep222: Nested Loops. A nested loop is a loopwithin a loop, an inner loop within the body of an outer one. ... Then the second pass of the outer loop triggers the inner loop again. This repeats until the outer loop finishes. Of course, a break within either the inner or outerloop would interrupt this process.
Answered by Anonymous
1
mate unary operators are those operators that have only one operands.

for example unary +,unary -

hope it helps you
Similar questions