Lec1 Notes
Lec1 Notes
Programming (OOP)
IT203
C language advantages:
• Portability: It refers to the usability of the same fragment of code in different
environments. C programs are capable of being written on one platform and being
run on another with or without any modification.
• Modularity/Structured Language: This feature of C language allows the program to
be splintered (broken) into smaller units and run individually with the help of
functions.
• Simple and Efficient
• Speed: Since it is a compiler-based language, it is comparatively faster than other
programming languages like Java or Python, which are interpreter based.
• Popular: It is one of the most extensively used languages in the development of
operating and embedded systems
• Existence of Libraries: C language comprises of its library which has a wide range
of built-in functions. Even the user-defined functions can be added to the C library.
• Dynamism: It supports the feature of DMA (Dynamic Memory
Allocation), which helps in the utilization and management of
memory. Among all the features of C, dynamism is unique.
Using DMA, the size of a data structure can be changed during
runtime using some predefined functions in the C library such
as malloc(), calloc(), free() and realloc().
Disadvantages of C Programming Language:
>Data Hiding
>Unnecessary details are hidden from
the user
>outer interface is only required
Encapsulation:
• > wrapping up data and
functions under one name
polymorphism:
• One name, different forms
Inheritance: