C

Fundamental concept of Problem solving
Introduction
Problem solving strategies
Program design & implementation
Introduction to C
Introduction to C
How to open C program code window
Description of C code window
Editing File
Saving and Running a program
The components of C language
Structure of C Program
A sample of C language program
C character set and keywords
C character set and keywords
The C character set
Identifiers
Key words
Data Types
Data Types
Primary Data Type
Secondary Data Type
Variables
Introduction
Rules for constructing variables names
Variable declaration
Assigning values to variables
Scope of variables: Local & Global
Constants
Introduction
Character constants
Integer constants
Real constants
Logical & String constants
C instruction set
Introduction
Type Declaration & Input/Output Instructions
Arithmetic Instructions
Control Instructions
Operators
Introduction
Arithmetic operators
Relational operators
Logical operators
Increment & Decrement operators
Bitwise operators
Conditional & ternary operators
The comma operators
Size of operator
Assignment operator
Type modifier
Expressions
Evaluation of expression
Automatic type conversion
Basic Input/Output
Introduction
Console I/O function
Disc & Port I/O function
Control Structures
Sequence control statements
Decision control & conditional statements
Case control statements
Repitition & loop control statements
Some more statements
Array and String
Introduction of Array
Array Declaration
Array Initialization
Two Dimensional Array
Multi Dimensional Array
String
Function and Recursion
Function Definition
Function Declaration
Function Call
Recursion
Pointers
Introduction
Pointer expression
Pointer & functions
Pointer & Array
Multi Dimensional Arrays & Pointer
Arrays of Pointer
Use of Pointer & functions
Structures
Introduction
Giving values to member
Structure Initialization
Comparison of structure variables
Arrays of structures
Arrays within structures
Structures within structures
Passing structure to function
Union
Introduction
Accessing a union member
Initialization of Union variable
Uses of Union
Dynamic Data Structure
Linked list
Stack
Queue
Data File Handling through C
Introduction
File operation
Opening & closing a data file
Creating a data file
Processing a data file
Unformatted data file
C Preprocessor & Macro
Introduction
Macro substitution directives
File inclusion
Compiler control directive
Command line parameter of C
Command line parameter
Header file
Header file
Use of library functions
Some Useful library functions

Operators


Assignment operator

Assignment operators are used to assign the result of an expression to a variable. The most commonly used assignment operator is (=).
 
eg:      i=i+10;
 
      i=i+10 is an assignment expression which assigns the value of i+10 to i.
 
Expression like   i=i+10,  i=i-5,  i=i*2 etc. can be rewritten using shorthand assignment operators.
 
e.g.:   i=i+5 is equivalent to i+=5
            i=i*(y+1)  is equivalent to   i*=(y+1)
 
Operator Precedence:
 
While executing an arithmetic statement which has two or more operators, we may have some problems about how exactly does it get executed.
 
To answer these questions satisfactorily we have to understand the precedence of operators.
 
Precedence defines the sequence in which operators are to be applied on the operands. Operators of same precedence are evaluated from left to right or right to left, depending upon the level.
 
This is known as associativity property of an operator.
 
Summary of precedence of associativity is given below:
 
Description Operator Associativity
Function Expression ( ) Left to Right
Array Expression [ ] Left to Right
Structure Operator -> Left to Right
Structure Operator . Left to Right
 
Description Operator Associativity
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 at address * Right to Left
Type cast (type) Right to Left
Size in bytes sizeof Right to Left
 
Description Operator Associativity
Multiplication * Left to Right
Division / Left to Right
Modulus % Left to Right
Addition + Left to Right
Subtraction - Left to Right
 
Description Operator Associativity
Left Shift << Left to Right
Right Shift >> Left to Right
 
Description Operator Associativity
Less Than < Left to Right
Less Than Equal to <= Left to Right
Greater than > Left to Right
Greater than Equal to >= Left to Right
 
Description Operator Associavity
Equal to == Left to Right
Not equal to != Left to Right
 
Description Operator Associavity
Bitwise AND & Left to Right
Bitwise XOR ^ Left to Right
 
Description Operator Associavity
Bitwise OR ^ Left to Right
 
Description Operator Associavity
Logical AND && Left to Right
Logical OR || Left to Right
 
Description Operator Associavity
Conditional ?: Right to Left
 
Description Operator Associavity
Assignment = Right to Left
Assignment *=   /=   %= Right to Left
Assignment +=   -=   &= Right to Left
Assignment ^=   |= Right to Left
Assignment <<=   >>= Right to Left
 
Description Operator Associavity
Comma , Right to Left