Sunday, November 6, 2011
symbols(operator) associativity/priority Precedence Table in C Programming Lunguage
Description | Operator | Associativity | |
Function expression | ( ) | Left to Right | |
Array Expression | [ ] | Left to Right | |
Structure operator | -> | Left to Right | |
Structure operator | . | Left to Right | |
Unary minus | - | Right to left | |
Increment/Decrement | ++ -- | Right to Left | |
One’s compliment | ~ | Right to left | |
Negation | ! | Right to Left | |
Address of | & | Right to left | |
Value of address | * | Right to left | |
Type cast | ( type ) | Right to left | |
Size in bytes | sizeof | Right to left | |
Multiplication | * | Left to right | |
Division | / | Left to right | |
Modulus | % | Left to right | |
Addition | + | Left to right | |
Subtraction | - | Left to right | |
Left shift | << | Left to right | |
Right shift | >> | Left to right | |
Less than | < | Left to right | |
Less than or equal to | <= | Left to right | |
Greater than | > | Left to right | |
Greater than or equal to | >= | Left to right | |
Equal to | == | Left to right | |
Not equal to | != | Left to right | |
Bitwise AND | & | Left to right | |
Bitwise exclusive OR | ^ | Left to right | |
Bitwise inclusive OR | | | Left to right | |
Logical AND | && | Left to right | |
Logical OR | || | Left to right | |
Conditional | ? : | Right to left | |
Assignment | = | Right to left | |
*= /= %= | Right to left | ||
+= -= &= | Right to left | ||
^= |= | Right to left | ||
<<= >>= | Right to left | ||
Comma | , | Right to left |
Summary of More Linux Programming in C programming language
(a )Programs can communicate with the Linux OS using library functions.
(b ) The Linux OS communicates with a program by means of signals.
(c ) The interrupt signal (SIGINT) is sent by the kernel to our program when we press Ctrl + C.
(d ) A term signal (SIGTERM) is sent to the program when we use the kill command.
(e ) A process cannot handle an un-catchable signal.
(f ) The kill –SIGKILL variation of the kill command generates an un-catchable SIGKILL signal that terminates a process.
(g ) A process can block a signal or a set of signals using the sigprocmask( ) function.
(h ) Blocked signals are delivered to the process when the signals are unblocked.
(i ) A SIGSTOP signal is generated when we press Ctrl + Z.
(j ) A SIGSTOP signal is un-catchable signal.
(k ) A suspended process can be resumed using the fg command.
(l ) A process receives the SIGCONT signal when it resumes execution.
(m ) In GTK, the g_signal_connect( ) function can be used to connect a function with an event.
Subscribe to:
Posts (Atom)