IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Coder
Search Coder Group:

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

Prestwood eMagazine

October 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 16 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

1 Comments.
Share a thought or comment...
Comment 1 of 1

Some operators can function as both unary and binary operators @snow rider 3d

Posted 7 months ago
 
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 = P161A1
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
17578
Since 10/16/2008
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2024 Prestwood IT Solutions.   [Security & Privacy]