Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Explore a wealth of knowledge from professionals across various disciplines on our comprehensive Q&A platform. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

what are the advantages and disadvantages of C programming. Give 6 points for each

Sagot :

Hey there mate :)

Definition :-

C is a general-purpose programming language used in enterprise applications, games, graphics, and applications requiring calculations, etc. It has a rich library which provides a number of built-in functions. It also offers dynamic memory allocation.

ADVANTAGES :-

☆ Requires no translator to translate the code. It is directly understood by the computer.

☆ Has good execution speed.

☆ They are portable and easier to transfer.

☆ Debugging can be done at ease.

☆ Execution of algorithms and data structures.

☆ Machine language makes fast and efficient use of the computer.

DISADVANTAGES :-

☆ It doesn't perform Run Time Type Checking. It only does compile time type checking. At run time, C doesn't ensure whether correct data type is used instead it perform automatic type conversion.

☆ All memory addresses have to be remembered

☆ The programmer must be an expert.

☆ There are separate codes for each operations and they have to be remembered.

☆ It has inefficient Memory Management System.

☆ Garbage Collection is not present.

~ Benjemin360

Answer:

Advantages of C

1 Simple to comprehend

2 Basic building block

3 Powerful and efficient language

4 Rich in library functions

5 Portable language

6 Simple to write

Disadvantages of C

1 Lack of OOP's concepts

2 Programming skills required to learn

3 Not efficient as compare to Python

4 Concept of namespace

5 Runtime checking

6 Only suitable to programmers not for all