INTRODUCTION TO C LANGUAGE
The Introduction to C language describes the various features and characteristics of C Language. Basically, an introduction is all about knowing or acknowledging about the particular stuff. Thus, below is the Introduction to C language through its characteristics, features and functions.
C – MIDDLE LEVEL LANGUAGE
C language is often called as a Middle level computer language. Why, as it has the simplicity of a high level language and the power of a low level language. It is viewed as a middle-level language. It integrates the leading elements of High level languages with the power and flexibility of Assembly Language.
C is a small language, consisting of only English words known as KEYWORDS. The Keywords are if, else, int, char, float, for, void, etc. The power of C language increases by the Library functions provided with it. Moreover, C also allows the users to add their own Library functions to the library.
The C language being a middle level language allows numerous of other features. It allows the manipulation of addresses, bytes and bits – the basic elements with which the computer functions and work. Regardless of this fact, C Programs are also Portable.
C – PORTABILITY
The programs written in C language are PORTABLE. Programs written for one type of computer system can run on another type of computer system.
PORTABILITY simply means “The ease to adapt any software written for one type of computer or operating system to another”. For example, converting the program easily written for UNIX so that it runs under WINDOWS, that program is PORTABLE.
C – STRUCTURED PROGRAMMING LANGUAGE
C is also referred to as Structured language. It has a lot of similarities to other structured languages such as ALGOL (Algorithmic Language), Pascal, etc. The well-known feature of a structured language is Compartmentalization of data and code. Compartmentalization means the ability of a language to hide all the instructions and information. The information hided are important to perform a specific task from the remaining program.
Compartmentalization in C is usually done by using subroutines that employ Local variables. Local variables are those whose scope remains inside a function. These Variables are not accessible outside the function in the program. Using local variables, one can write subroutines. Thus, the changes that occur within them causes no side effects in other parts of the program.
As C is a structured language, it allows you a variety of programming possibilities. It supports several loop constructs, like while loop, do-while loop and for loop. It also includes selection statements such as if statement, if-else statement and switch statement. C contains all of these control structures needed to write a structured program. Hence, it is considered as a structured programming language.
C – FUNCTIONS
C’s main structural component is the Function-C’s stand-alone subroutine. In C, functions are the building blocks in which all activities related to program occurs. After creating a function, you can trust on it to work properly. It works in different situations without creating any side effects in other parts of the program.
C – A PROGRAMMER’S LANGUAGE
Surprisingly, not all computer programming languages are for programmers such as COBOL (Common Business-Oriented Language) and BASIC (Beginner’s All-purpose Symbolic Instruction Code). In contrast, C was constructed, impacted, and field-tested by working programmers. The end result is that C provides the programmer what the program actually wants. That is few restrictions, few complaints, block structures, stand-alone functions, and a compact set of keywords.
Thus, through the following Introduction to C language we can list down some of the characteristics of C which are:
- C is a MIDDLE LEVEL LANGUAGE.
- An excellent, efficient and general purpose language.
- Applies in System software applications, mathematical, scientific, business and other more applications.
- Contains KEYWORDS, LIBRARY FUNCTIONS, CONTROL CONSTRUCTS such as Selection statements, looping statements etc.
- It is a STRUCTURED LANGUAGE.
- C programs are PORTABLE.
- It is a PROGRAMMER’S LANGUAGE.
Hence, This was all for INTRODUCTION TO C LANGUAGE.. For the General format or Structure of a C program.. Click on