Chapter 1 : Introduction
# Let us C
Chapter 1 : Introduction
There are four important aspects of any language. They are
1) The way it stores data
2) The way it operates upon this data
3) How it accomplishes input and output
4) How it lets you control the sequence of execution of instructions in a program.
This chapter explains first three of them.
C is different from C++, C# and JAVA in following aspects.
1) C++, C# or Java make use of Object Oriented Programming (OOP).
2) Major parts of popular operating systems like Windows, UNIX, Linux is still written in C.
3) Device driver programs are exclusively written in C.
4) Speed is where C language scores over other languages.
Types of C Constants
C constants can be divided into two major categories:
(a) Primary Constants
(b) Secondary Constants
Rules for Constructing Integer Constants
(a) An integer constant must have at least one digit.
(b) It must not have a decimal point.
(c) It can be either positive or negative.
(d) If no sign precedes an integer constant it is assumed to be positive.
(e) No commas or blanks are allowed within an integer constant.
(f) The allowable range for integer constants is -32768 to 32767.
Note: The range of an Integer constant depends upon the compiler. For a 16-bit compiler like Turbo C or Turbo C++ the range is –32768 to 32767. For a 32-bit compiler the range would be even greater.
Comments
Post a Comment