C Instructions
C Instructions
C Instructions
C Instructions
Instruction: Combination of constants, variables and
keywords to form a meaningful & logical sentence.
Ex: printf(“hello”);
printf(“%d”,a);
scanf(“%c”,ch);
Arithmetic Instruction
• To perform arithmetic operations between constants
and variables.
• Format of Instruction:
• Conversions in Assignments
Hierarchy of Operations
Priority Operators Description
1ST */% Multiplication, division,
Modular division
2nd +- Addition,
subtraction
3rd = Assignment
• Associativity
1. Z=a*b/c
2. Z=a*b+c/d
3. a=(b*(c*d+(e/f)))
Thank You
Questions
&
General Discussion