Presentation
on Programming In C
Welcome tothefoundationalworld of Cprogramming. Thispresentation will
guideyou through theessentials of C, fromitshistory towritingyourfirst
program.
Raj Guru Yadav
Roll no. - 240070800043
rd
Computer science 3 sem
What is C ?
1) C is a basic programming language used to make software and operating systems.
2) It is fast and easy to understand, and works on almost every computer.
3) Many other languages like C++ and Java are based on C, so it is
called the mother of all languages.
Origin and History of C Language
The C language was invented by Dennis Ritchie
in 1972. He worked at Bell Laboratories (USA). It
was made for writing the UNIX operating
system. Later, C became very popular all over
the world.
Versions of C
The C programming language was created in 1972 and later standardized by various
organizations. There have been several improved versions of C with new features and
better reliability. Major versions of C are – K&R C, ANSI C, C89/C90, C99, and C11.
• In 1978, the first C book was published by Kernighan and Ritchie, called "The C Programming Language". This is known as K&R C.
• In 1989, the ANSI committee released ANSI C, also called C89.
• In 1990, it was approved by ISO and known as C90.
• In 1999, a new version called C99 was released with features like long long int and inline functions.
• In 2011, C11 was released with improved safety and multi-threading support.
• The latest standard is C18 (also called C17), released in 2018, with minor updates.
Latest version – C18 is currently the official latest standard of C language.
To check your C version:
i) For Linux or Mac: type gcc --version in terminal.
ii) For Windows (TurboC): check version info in Help → About window of Turbo C or use gcc --version in cmd if using GCC.
Importance of Learning C
C language is considered one of the most important foundational programming languages in computer
science. It is used in operating systems, embedded systems, compilers and even in modern languages like C++
and Java. Learning C helps beginners understand how programming works internally and makes logic building
strong.
• C is a very fast and efficient language, which makes it suitable for system programming.
• It helps in understanding memory management, pointers and low-level operations.
• Many other languages like C++, Java, Python are based on the concepts of C.
• C is widely used in operating systems, drivers, embedded devices and IoT.
• Learning C improves the logic behind loops, conditions, arrays and functions.
• C programming is still asked in many exams, interviews and coding competitions.
Today, C is still used in core system development and competitive programming. Learning C
builds a strong base for learning all other programming languages.
Installation of C Compiler / IDE
Go to Google → type "Turbo C++ download"
Click on a trusted link → download the setup file
Open the installer → click Next → Install → Finish
Go to Desktop → open Turbo C++ icon
If you want a modern IDE →
Go to Google → type "Download Code::Blocks with GCC"
stall Code::Blocks → open the software → click File → New → Project →
Console Application
To check version in terminal (Linux) →
Open Terminal → type gcc --version
Tip: You can also use Dev C++ or VS Code with GCC.
First C Program (Hello World)
→ → →
Open your IDE click File New Source File
Type the following code inside the editor:
→
Save the file example name: hello.c
→
Now click Compile Run (or press Ctrl + F9 in Turbo C++)
→
Output window shows Hello World
Comments in C
→
1. Comments are used to explain the code they make the program easy to understand.
2. →
Comments are not executed by the compiler only for humans to read.
Types of Comments:
→
Single-line comment // This is a comment
→
Multi-line comment
/* This is a multi-line comment */