Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

The GNU C Programming Tutorial - Unary Operator Precedence

Node:Unary Operator Precedence, Next:, Previous:Parentheses and Priority, Up:Expressions and operators



Unary Operator Precedence

Unary operators are operators that have only a single operand -- that is, they operate on only one object. The following are (or can be) all unary operators:

++  --  +  -

The order of evaluation of unary operators is from right to left, so an expression like:

*ptr++;

would perform the ++ before the *. (The ++ operator will be introduced in the next section, and the * operator will be introduced in the next chapter. See Pointers.)

 
 
  Published under free license. Design by Interspire