#What is a Unary Operator?

6 messages · Page 1 of 1 (latest)

cedar moon
#

I have a quiz on truth tables yesterday and I'm just memorizing the order of operations. I'm not sure what a unary operator is and googling it doesn't seem to make the answer very clear. Thanks!

fickle shuttleBOT
#

This post has been reserved for your question.

Hey @cedar moon! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

brave minnow
#

unary refers to how many operands the operator takes, specifically 1
unary plus/minus are +1 or -1, ie the positive and negative sign in math
2 operands is a binary operator, and 3 operands is the ternary operator, of which there is only one, ? :

cedar moon
#

Mmm