Advantages and disadvantages of C Language

Source: Internet
Author: User

Advantages and disadvantages of C Language
Advantages and disadvantages of C language:

1. process-oriented language
C language is a process-oriented language. Here, you can create a process or function to execute their tasks. Process-oriented languages are easy to learn because they follow algorithms to execute your statements. To develop programs in a process-oriented language, You need to draw/write algorithms and convert them into programs or functions.
2. Many databases
C language provides a large number of functions, including system-generated functions and user-defined functions. The header file that comes with the C compiler, including a list of many basic functions that can be used for development programs. At the same time, programmers can also create functions called user-generated/defined functions according to their requirements.
3. Compilation speed
The machine code produced by the C compiler is much faster than the compiler in other languages. The C compiler can compile about 1000 lines of code in two seconds. Another benefit of the C compiler is that it also optimizes faster code execution.
4. Easy to learn (the syntax is close to English)
C language syntax is easy to understand. It uses keywords such as if, else, goto, switch, goto, and main. These keywords are used in our daily life to convey meaning or get some decisions.
5. Portable
The C language is set to about 3-5 MB. Therefore, you can carry it with you on your floppy drive or on a portable drive. It is very easy to install and operate, and its output is an exe file that can be executed on any computer without any other framework/software.
C is a highly portable language. This means that C Programs Written by one computer can run easily on another computer without any change or a small change.
6. C language is used to build many other known language modules.
C language has a variety of data types and powerful operators. For this reason, C programming is efficient, fast, and easy to understand.
7. Only the 32 ansi c keyword and its length depend on its built-in functions.
There are several standard functions available for development programs.
8. Another important advantage of C is its ability to expand itself.
A c program is basically a set of functions supported by the C library, which makes it easier for us to add our own functions to the C library.
Programming tasks become simple due to the availability of a large number of features.
9. C language is a structured programming language.
This allows the user to think of the functional modules or block terms in the question. You can compile a complete set of these modules. This modular structure makes debugging, testing, and maintenance easier.

Disadvantages of C language:

1. Object-Oriented Programming (OOPs)
Object-Oriented Programming is characterized by a lack of C language. You can only develop programs using a process-oriented language. C does not have the OOPs concept, which is why C ++ is developed.
2. The runtime type check is unavailable
The C language does not specify the runtime type check. For example, if I pass a floating point value and the received parameter is of the integer type, the value will be changed and no error message of any type will be given.
3. namespace Functions
C does not provide the namespace function, so that you cannot use the same variable name again within a range. If the namespace function is available, you can reuse the same variable name.
4. constructor and destructor are unavailable:
C does not provide object-oriented features, so it does not have the construction and analysis functions. Constructors and destructor are used to construct objects and destroy objects. Therefore, in C, you must manually implement the variable structure and structure through methods or other methods.

Reference:

1. http://latest-technology-guide.blogspot.jp/2012/12/c-language-advantages-and-disadvantages.html

2. http://www.thecrazyprogrammer.com/2013/07/what-are-advantages-and-disadvantages.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.