Programming Fundamentals

Page 29

PROGRAMMING FUNDAMENTALS 

Character type - used to store characters value.

Size and range of character data type on 16-bit machine are as in the table below. Table 2.3: Character Data Type TYPE

2.5

SIZE(BYTES)

char or signed char

1

unsigned char

1

RANGE -128 to 127 0 to 255

FUNDAMENTALS OF C PROGRAM 2.5.1 Structure of C Program C++ program consists of objects, functions, variables, and other components. There are a few program structures that are very important for to understand why the program must be written in such way.

Figure 2.5: Structure of C Program

25 | P a g e


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.