Lecture01 C WS
Lecture01 C WS
Introduction of c program
C Programming:
C is a general-purpose programming language created by Dennis Ritchie at the
Bell Laboratories in 1972.It is a very popular language, despite being old.
Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system.
C is the most widely used computer language. It is considered as the mother of
all languages. C is a high-level programming language that provides support to
a low-level programming language as well.
History of C Language
History of C language is interesting to know. Here we are going to discuss a brief
history of the c language.
Features of C Language:
C is the widely used language. It provides many features that are given below.
1. Simple
2. Machine Independent or Portable
3. Mid-level programming language
4. structured programming language
5. Rich Library
6. Memory Management
7. Fast Speed
8. Pointers
9. Recursion and Extensible
Applications of C Programming
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 are -
• Operating Systems
• Language Compilers
• Assemblers
• Text Editors
• Print Spoolers
• Network Drivers
• Modern Programs
• Databases
• Language Interpreters
C Program:
Hello World using C Programming:
First C Program
Before starting the abcd of C language, you need to learn how to write, compile and run
the first c Program. To write the first c program, open the C console and write the
following code:
1. #include <stdio.h>
2. int main(){
3. printf("Hello C Language");
4. return 0;
5. }
#include <stdio.h> includes the standard input output library functions. The printf()
function is defined in stdio.h .
int main() The main() function is the entry point of every program in c language.
printf() The printf() function is used to print data on the console.
return 0 The return 0 statement, returns execution status to the OS. The 0 value is used
for successful execution and 1 for unsuccessful execution.
Install: