What are unary operators? [1 day before exam]

What are unary operators? [1 day before exam]

Channel:
Subscribers:
11,800
Published on ● Video Link: https://www.youtube.com/watch?v=hh00aVBv8HU



Category:
Tutorial
Duration: 6:51
450 views
26


This video tutorial shows you what unary operators are in programming laguages like python, java, c, c#, javascript and GameMaker language.

These operators are called unary because they are a shorthand way how to write instructions on only one variable or constant. Normally you would write something like this.

variable = variable + 1; Which is saying, add to the constant with the value of 1 to the value stored in the variable and then set that operation's stored result as a new value to the variable. But you can write that shorter like this: variable++;

This video covers the universal univery operators like ++,--, negative -, plus +, logical !, and tidle ~. There is also typeOf and void but not all languages use this and therefore I won't go into those here.







Tags:
unary operators in java
unary operators in javascript
unary operators in c
unary operator tutorial
unary operator gamemaker
unary operator
java unary operator explanation
java unary operator example
python unary operator tutorial
what are unary operators
how to use unary operator