1b - Intro To C
1b - Intro To C
Introduction to C
Ashis Talukder, PhD
Assistant Professor
Department of MIS, DU
• Introduction to C Programming:
• Features of C and its Basic Structure.
• Simple C programs.
• Constants, Integer Constants, Real Constants, Character Constants, String Constants, Backslash
Character Constants, Concept of an Integer and Variable,
• Rules for naming Variables and assigning values to variables
• Rich Library
• C provides a lot of inbuilt functions that make the development fast.
• Memory Management
• It supports the feature of dynamic memory allocation. In C language, we can free the
allocated memory at any time by calling the free() function.
• Pointer
• C provides the feature of pointers. We can directly interact with the memory by
using the pointers. We can use pointers for memory, structures, functions, array, etc.
• Recursion
• In C, we can call the function within the function. It provides code reusability for
every function. Recursion enables us to use the approach of backtracking.
• Few keywords
• C language have few keywords and thus, easy to handle and work with
• Structures, unions
• C supports compound data types like structures, unions in addition to simple
data type (int, float, char)
• C as a mother language
• C language is considered as the mother language of all the modern programming
languages because most of the compilers, JVMs, Kernels, etc. are written in C
language, and most of the programming languages follow C syntax, for example, C++,
Java, C#, etc.
• It provides the core concepts like the array, strings, functions, file handling, etc. that
are being used in many languages like C++, Java, C#, etc.
} a=7 b=5
main() {
{ int a,b,c;
float pi, p,q;
int a,b,c;
char aa, AA;
printf("\n\n\n\n\tProgramming is funny!");
a = 5;
b = 7;
a = 5;
b = 7;
c = a + b; c = a + b;