Skip to main content

Features of 'C'


Features of ‘C’

Although ‘C’ is one of the elder language to be known, it have some Features that were exclusively present in the Language, ‘C’ became the first Language to possess some of the following Features.

Ø SIMPLE‘C’ is a simple language with a structural approach, which means it have ability to divide problems into meaningful parts. Functions (), Data types and rich library makes it simple.

Ø PORTABLE (MACHINE INDEPENDENT): ‘C’ is a machine independent language, which means it have WORA (Write Once Run Anywhere) property, thus a program written on one OS or device can run on any other OS or device, with none or negligible modifications.

Although ‘C’ was developed to work on UNIX Platform, but later on it became Portable.
  
Ø RICH LIBRARY: C’ provides a rich library with lot of pre-defined functions which make development of a program easy.

Ø MEMORY MANAGEMENT: ‘C’ have better memory management since it provides Dynamic Memory Allocation and allocated memory can be cleaned anytime by calling free() function.

Ø SPEED FACTOR:  C’ have faster compilation and execution timing.

Ø EXTENSIBLE: C’ is extensible language,  Since it can easily adopt new features and extend its approach.

Ø MODULARITY: The problem can be divided into various modules or parts called as Functions ().

Ø RECURSION: Its means a Function can call itself. This feature provides re-usability of code in the Function.

Ø POINTERS: C’ provides pointers to interact directly with the memory, pointers are used for arrays, structures, memory and functions.

Comments

Popular posts from this blog

Keywords and Comments in C

KEYWORDS IN C For better blogs do comment your opinion and share the blog What are Keywords? Keywords are the words that convey a special meaning to the compiler. This means the meaning of every particular keyword is already defined to the compiler of the Language. There are total 32 Keywords in C Language and all have their meaning fixed to the compiler. These are the keywords in C. auto double int struct break else long switch case enum register typedef char extern return union const float short unsigned continue for signed void default goto sizeof volatile do if static while The Keywords in Red are the data types they are used to define the data type of a variable. Example: int i; float f; char ch; long l; The Usage of these keywords will be covered as they arrive ...

Data Types In C: Size, Range and Usage.

DATA TYPES IN ‘c’ Data types are keywords which specify the type of data which is used in the programs of C language. Different data types have different storage capacities and different range of data. There are mainly two main categories of data types. PRE-DEFINED DATA TYPES/PRIMARY DATA TYPES INTEGER TYPE DATA TYPES Integer type data type is used to store a whole number or integer number Type Size(bytes) Range int or signed int 2 -32,768 to 32767 unsigned int 2 0 to 65535 short int or signed short int 1 -128 to 127 unsigned short int 1 0 to 255 long int or signed long int 4 -2,147,483,648 to 2,147,483,647 unsigned long int 4 0 to 4,294,967,295 FLOAT TYPE DATA TYPE Float type data types are used to store a real number. Type Size(bytes) Range Float 4 3.4E-38 to 3.4E+38 double 8 1.7E-308 to 1.7E+308 long double 10 3.4E-4932 to 1.1E+4932 CHARACTER DATA TYPE Character type data type is used to store Character type value ...

Iteration and Iterative statements.

ITERATION IN C According to Google: Iteration is the repetition of a process or utterance. In a programming language Iteration stands for a repeating execution of a set of codes until desired condition is obtained. Iteration is done through Iterative Statements. Iteration is also called Looping, which means doing a work again and again. For better understanding of a loop, here is a Real world filmy example: Remember the climax scene from Dr. Strange (2016) where Dr. Strange goes into space to bargain for Earth’s protection from Dormammu, in order to do so he starts an endless time loop which he won’t stop until dormammu accepts his demands and when Dormammu did so the loop stopped. Iteration works in same way, considering his approach as loop’s condition. There are three Iterative statements which makes Iteration possible: For statements (loops).   While statements (loops).   Do-while statements (loops). FOR LOOP AND WHILE LOOP: T...