C is one of the most popular computer language developed at AT&T’S Bell laboratories of USA in 1972 .It was developed by Dennis Ritchie. It is also called mid level language.
Today when the computer technology is on it's highest era and the advance programming languages like C++,C# and JAVA is very popular among developers many of us may think that C is now become less important. But this is not true since, C is still very popular and important language for it's following features.
Advantage Associated with C Language
- Simple to use and understand. You can later on migrate to C++, C# or java. Hence, preferring two-step learning process.
- C++,C# or java using oops technology that actually require core C language element.
- Operating system like window, Linux, UNIX is still written in C. And so if you are to extend any of above operating system to work with new devices you must need to write device driver program. And are exclusively written in C.
- C has best performance record. Because of highest execution among all other language (due to its verity of data type and powerful operator).
- Enormous electronic gadgets like mobile phone, digital camera, I-pod, microwaves, ovens, washing machine are using a microprocessor (chip) which contains an operating system and a program which are embedded in these devices which must have fast execution within limited amount of memory. And it is C who comes to show its smartness here.
- Professional 3D computer game like spaceship and firing bullet need speed to match player’s inputs and C is again hero here.
- Its structured, high level, machine independent language that provide programmer a freedom to portability facility.(One computer to another).
- C compilers combine the facility of an assembly language plus high level language. And hence capable to write both operating system and business pack. Many C compilers are itself written in C that is available in market.
- Another very important feature of C is its ability to extend itself .We can continuously add our own function to its library is convents.
Disadvantages Associated with C Language
- There is no strict type checking (for ex: we can pass an integer value for the floating data type).
- As the program extends it is very difficult to fix the bugs.
- There is no runtime checking.
Basic Structure of C program
- Documentation Section
- Link Section
- Definition Section
- Global Declaration Section
- -----------------------------------------------------------------
- main function section
- {
- //Declaration part
- //Executable part
- }
- -----------------------------------------------------------------
- Sub program section
- Function 1
- Function 2
- --
- -- //user defined function
- --
- Function n
No comments:
Post a Comment