I.T. Discussion Community!
-Collapse +Expand
Coder
Search Coder Group:

Advanced
-Collapse +Expand Coder Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Coder Store
PRESTWOODSTORE

Prestwood eMagazine

April Edition
Subscribe now! It's Free!
Enter your email:

   ► KBRole-Based T...Coding & OOGeneral Codi...   Print This     
  From the August 2015 Issue of Prestwood eMag
 
Coder General Coding Concepts:
Unary Operator
 
Posted 12 years ago on 10/16/2008 and updated 2/19/2009
Take Away:

An operation with only one operand (a single input). Common unary operators include + plus, - minus, and bitwise not. Some operators can function as both unary and binary operators. For example, + and - operators can serve as either.

Coder Definition Flashcard:
 A flashcard from our Coder Flashcards Library
 A definition from our Coder Definitions Page

KB101331

Unary Operator -

An operation with only one operand (a single input). Common unary operators include + plus, - minus, and bitwise not. Some operators can function as both unary and binary operators. For example, + and - operators can serve as either.


Examples:

-a
+b
-(a + b)

Bitwise Not

bitwise not (usually either Not or !). Some operators can function as both unary and binary operators. For example, + and - operators can serve as either.

Not(a + b) ...some languages use !(a + b)

 

More Info

Code:  Access VBA Unary Operators
Code:  ASP Classic Unary Operators
Definition:  C Family Unary Operators
Code:  C# Unary Operators
Code:  C++ Unary Operators
Code:  Delphi Prism Unary Operators
Code:  Delphi Unary Operators
Code:  Java Unary Operators
Code:  JavaScript Unary Operators
Code:  ObjectPAL Unary Operators
Code:  Perl Unary Operators
Code:  PHP Unary Operators
Code:  VB Classic Unary Operators
Code:  VB.Net Unary Operators

Comments

0 Comments.
Share a thought or comment...
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P195A1
Enter key:
Definition Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #101331 Counter
14471
Since 10/16/2008

Follow PrestwoodBoards on: 


©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech