Data Structure and Algorithm Slide
Data Structure and Algorithm Slide
• HISTORY OF C LANGUAGE
C Programming Language came out of Bell Labs in the
early 1970. Dennis Ritchie develop C Language according
to the Bell Labs paper. C Language was used for Unix
operating system. But before the C language development,
a B Programming was developed by Ken Thompson. Due
to slow nature of B in the Operating System this led to the
development of C.
PUBLICATION OF THE C PROGRAMMING LANGUAGE
SAMPLE PROGRAM # 1
#include <stdio.h>
main()
{
printf(“Hello to today’s NEW NORMAL\n ”);
printf(“CMU-CET face the challenge of On-line Education!”);
return 0;
}
Output:
Hello to today’s NEW NORMAL
CMU-CET face the challenge of On-line Education!
DISECTING:
SAMPLE PROGRAM # 2
#include <stdio.h>
int main()
{
int num1;
printf(“enter a number: “);
scanf(“%d”, &num1);
printf(“you enter number: “,num1);
return 0;
}
Declaration of DATA TYPE and VARIABLE
SAMPLE PROGRAM #3
#include <stdio.h>
int main()
{
char Sname;
int quiz1, quiz2;