0% found this document useful (0 votes)
45 views10 pages

Basic of C

The document provides an introduction to the C programming language. It discusses that C was developed in 1972 by Dennis Ritchie at Bell Laboratories and was created for the UNIX operating system. C is a small, high-level language that can manipulate computer memory directly and has low memory demands, allowing it to run on different platforms with little modification. The document also provides an overview of the basic structure of a C program, including header files, constants, variable declaration, and the main program section containing code.

Uploaded by

Jetal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views10 pages

Basic of C

The document provides an introduction to the C programming language. It discusses that C was developed in 1972 by Dennis Ritchie at Bell Laboratories and was created for the UNIX operating system. C is a small, high-level language that can manipulate computer memory directly and has low memory demands, allowing it to run on different platforms with little modification. The document also provides an overview of the basic structure of a C program, including header files, constants, variable declaration, and the main program section containing code.

Uploaded by

Jetal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

BASIC

C
PROGRAMING

BY KARISHAMA KHANDEKAR
GENERAL
KNOWLEDGE

What is a computer program (software)


 Its a set of instructions that tells the computer what to do.
 There are about 400 programming languages. Each language
has its own:
 Syntax
 Grammar
 Application
GENERAL
KNOWLEDGE

A BRIEF HISTORY OF PROGRAMMING


LANGUAGES
Machine Languages : (0, 1)
 Assembly Languages
 More advanced than machine languages
 High Level Languages
 Have English like syntax
 Has an Interpreter or compiler.
 Are divided into 2 categories:
 Procedural (Conventional)
 Object Oriented
GENERAL
KNOWLEDGE

PROCEDURAL OBJECT ORIENTED


LANGUAGE
 Problem is solved based on LANGUAGES
 Problem is solved based on the
the tasks to be performed. objects involved.
 A segment of code is written  Objects have properties and
to accomplish each task.
methods (behavior).
 The segment of code is called
a procedure / function.  Ex: C++
 Ex: C
Let's see the programming languages that were
developed before C language.
INTRODUCTIO C1990ISO
Language year Developed By
CommitteeC991999Standardization
N Committee
ALGOL 1960 International
Group
BPCL 1967 Martin Richards

B 1970 Ken Thompson


“C” LANGUAGE
Traditional C 1972 Dennis Ritchie
C programming language was developed in
1972 by Dennis Ritchie at bell laboratories of K&RC 1978 Kernighan &
AT&T (American Telephone & Telegraph), Dennis Ritchie
located in the U.S.A.
Developed for US LINUX Operating system ANSI C 1989 ANSI Committee

Dennis Ritchie is known as the founder of the c


ANSI/ISO C 1990 ISO Committee
language

C99 1999 Standardization


Committee
INTRODUCTIO
N

WHY USE
C...
 It is small, high level and structured language
It can manipulate bits of computer memory
Does not put high demand on memory
Can run on different platforms with very little modification
INTRODUCTIO
N

C Program’s Life Cycle APPLICATIO


N
Summarize what really
happened in relationship to
the plan
List differences in terms of original dates (x
weeks late, x months early, etc.)
Basic parts of a C Program

// Display Hello World to screen:

#include <stdio.h>
main()
{
printf(“Hello World!” );
}
Structure of a Simple C Program

#include “stdio.h” Header files to be included


#include “stdlib.h”

Definition of any constants


#define CONSTANT_NAME 4 used in program

void main(void) Main C Program


{ Section
float y=0.1;
Variable declaration and
int x[100];
(optional) initialisation
char name[50];

printf(“\nProgram start”);
………..……. C Program Code
}
LET’S
START JOURNEY !

You might also like