About Me

Hey friends! My name is yuvraj basnet. I'm going to introduce myself.I have born and grown up in india(chandigarh) and I'm studying second year of B.C.A computer science field. My father serving in indian air force. My mother has been taking care of house hold. I am a friendly person, good thinker, I can work for longer hours without any break, only if I'm interested in that...My life style is very simple.

OVERVIEW OF C

                                         
In the previous article you learn about C language now 
In this article you will learn feature ,advantage and disadvantage of C language
and step by step execution of C program.


                                      FEATURES OF C LANGUAGE

1) Simple-

C is a simple language in the sense that it provides structured approach (to break the problem into parts), rich set of library functions, data types etc.

2) Mid-level programming language-

C is also used to do low level programming. It is used to develop system applications such as kernel, driver etc. It also supports the feature of high level language. That is why it is known as mid-level language.

3) Structured programming language-

C is a structured programming language in the sense that we can break the program into parts using functions. So, it is easy to understand and modify.

4) Memory Management-

It supports the feature of dynamic memory allocation. In C language, we can free the allocated memory at any time by calling the free() function.

5) Speed-

The compilation and execution time of C language is fast.

6) Pointer-

C provides the feature of pointers. We can directly interact with the memory by using the pointers. We can use pointers for memory, structures, functions, array etc.

7) Recursion-

In c, we can call the function within the function. It provides code reusability for every function.

                                      ADVANTAGES OF C LANGUAGE

1. C language is a building block for many other currently known languages. C language has variety of data types and powerful operators. Due to this, programs written in C language are efficient, fast and easy to understand.
2)2. C is highly portable language. This means that C programs written for one computer can easily run on another computer without any change or by doing a little change.
3. There are only 32 keywords in ANSI C and its strength lies in its built-in functions. Several standard functions are available which can be used for developing programs.
                                          DISADVANTAGES OF C LANGUAGE
1. C does not have concepts of OOPs,that's why c++ is developed.
2. There is no runtime checking in C language.
3. There is no strict type checking. For example, we can pass an integer value.
4. for the floating data type.
5. C doesn’t have the concept of namespace.
6. C doesn’t have the concept of constructor or destructor.



                                                           FIRST C PROGRAM -



STEP BY STEP EXECUTION OF C PROGRAM-

Step 1) Edit.
Step 2) Compiling.
Step 3) Checking errors.
Step 4) Linking libraries (Include header file , executed by linker).
Step 5) Error checking (Run time error).

DEFINITION OF COMPILER-

1)A computer program which reads source code and outputs assembly code or executable code  is called compiler.

2)A program that translates software written in source code into instructions that a computer can understand Software used to translate the text that a programmer writes into a format the CPU can use.

DEFINITION OF INTERPRETER-

Interpreter is a program that executes instructions written in a high-level language. There are two ways to run programs written in a high-level language. The most common is to compile the program; the other method is to pass the program through an interpreter.


DIFFERENCE BETWEEN SOURCE CODE AND OBJECT CODE -

SOURCE CODE-


1) Source Code is In the form of Text.

2) Source Code is Human Readable.
3) Source Code is Generated by Human.
4) Source Code is Input Given to Compiler.

OBJECT CODE-

1) Object Code is in the form of Binary Numbers.
2) Object Code is in Machine Readable.
3) Object Code is Generated by Compiler.
4) Object code is Output of Compiler.




























Post a Comment

0 Comments