Skip to main content

IMPORTANCE OF C

IMPORTANCE OF C

The increasing popularity of C is probably due to its many desirable qualities.
It is a robust language whose rich set of built-in functions and operators
can be used to write any complex program. The C compiler combines the capabilities of an assembly language with the features of a high-level language and therefore it is well suited for writing both system software and
business packages. In fact, many of the C compilers available in the market are written in C.
    Programs written in C are eficient and fast. This is due to its variety of data types and powerful operators. It is many times faster than BASIC. For example, a program to increment a variable from O to 15000 takes about one second in C while it takes more than 50 seconds in an interpreter BASIC.
    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 program
   C is highly portable. This means that C programs written for one computer can be run on another with little or no modification. Portability is important if we plan to use a new computer with a different
operating system.
    C language is well suited for structured programming, thus requiring the user to think of a problem in terms of function modules or blocks. A proper collection of these modules would make a complete
program. This modular structure makes program debugging, testing and maintenance easier.


    Another important feature of C is its ability to extend itself. A C program is basically a collection of functions that are supported by the C library. We can continuously add our own functions to C library. With the availability of a large number of functions, the programming task becomes simple.

Comments

Popular posts from this blog

What is Array

  Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. Instead of declaring individual variables, such as number0, number1, ..., and number99, you declare one array variable such as numbers and use numbers[0], numbers[1], and ..., numbers[99] to represent individual variables. A specific element in an array is accessed by an index. All arrays consist of contiguous memory locations. The lowest address corresponds to the first element and the highest address to the last element. How to make picture puzzle using JavaScript Declaring Arrays To declare an array in C, a programmer specifies the type of the elements and the number of elements required by an array as follows − type arrayName [ arraySize ]; This is called a  single-dimensional  array. The  arraySize  must...

Data Types in C

 Data Type in C Programming Type of data is know as Data type. int,float,char are example of data type in c There are two types 1. Primary data type 2. Derived data type. Primary data types Integer(int),floating(float),character(char),void are the primary data type Derived data types  arrays, functions, structures and pointers are Derived data types. Integer type Integers are used to store whole numbers. Floating type Floating types are used to store real numbers. Character type Character types are used to store characters value. void type void type means no value. This is usually used to specify the type of functions.

Why use C?

Why use C? C was initially used for system development work, particularly the programs that make-up the operating system. C was adopted as a system development language because it produces code that runs nearly as fast as the code written in assembly language. Some examples of the use of C might be − • Operating Systems • Language Compilers • Assemblers • Text Editors • Print Spoolers • Network Drivers • Modern Programs • Databases • Language Interpreters • Utilities