You are on page 1of 17

Introduction

1
• All statements are entered in small case letters.

• C has no specific rules for the position at which a


statement is to be written. That’s why it is often called a
free-form language.

• Every C statement must end with a ;. Thus ; acts as a


statement terminator.

2
Example:

3
Receive input

4
5
C Instructions

•Type Declaration

•Arithmetic instruction

•Control instruction

6
Type Declaration

int bas;
float rs, grosssal ;
char name, code ;

7
8
9
10
11
12
13
• Example 1.1: Determine the hierarchy of operations and
evaluate the following expression:
• i=2*3/4+4/4+8-2+5/8

14
15
16
17

You might also like