Beruflich Dokumente
Kultur Dokumente
‘ O’ Level
C LANGUAGE PROJECT
Submitted by
Guide By;-
Vijay Rajput
To
Executive Director.
DOEACC Society
6. CGO Complex
Lodhi Road
New Delhi-110003
Sir
I am submitting my ‘ O’ Level Project for evaluation Details of my
Registration and postal address ,etc is as under .
Reg No - 1108764
Course - O, level
Name - Pradeep Gautum
Fathers Name - Mr. Rajendra Singh Gautam
Mother’s Name - Chandra Devi
Institute Name -Chanakya ACL Mainpuri
ACCR No - ACCR-01848
Address - Rajkey Awas D/39 Type Colony Civil Line
Golabazar Mainpuri
Certificate of Institute
This is to certify that this project report titled “C language Project” has
been prepared by “ Pradeep Gautam” Reg.No. 1108764 of Doeacc ‘O’
Level under my supervision and guidance. The work done by the
candidate is the outcome of extensive study on the above course.
……
Vijay Rajput
CERTIFICATE OF THE INSTITUTE
This report had not been submitted for any other examination and
does not form a part of any other course undergone by the candidate.
It is further certified that he/she has appeared in all the four modules.
Date:
Signature
Pradeep Gautam
The advent of C programming begin in the late 1960s and share roots
deep in the development of UNIX operating system. UNIX is a
popular network operating system that pumps heart of the modern
internet. In late 1960s Ken Thompson and Dennis Ritchie developed,
a language called B. Earlier version of UNIX uses B programming
language. It inherits many of its features from BCPL (Basic Combined
Programming Language).
Later in the early 1970s need for a portable operating system and
programming language originated. Rather developing programs and
operating system for a particular machine. The need of a portable
operating system came in existence. This was the period when
development of C programming language started.
During 1969 to 1972, Dennis Ritchie at Bell Laboratories developed
C. In 1972, the first release of C programming got officially public. C
inherited many features from ALGOL, BCPL and B. It is such a
powerful language that UNIX operating system is almost completely
written in C.
In 1978, it gained huge popularity from the Bell laboratories to the
heart of every programmer. Brain Kernighan along with Dennis
Ritchie published the first book on C "The C Programming Language".
The book is popularly also known as "K&R C book”.
To learn C in much better way, this is a must read book on C
programming.
C Standards
The massive popularity of C programming headed development of its versions.
However, every version was similar to the original but often incompatible. To assure
the standard of C in every version, American National Standards Institute (ANSI)
initiated work on C standards.
In 1989, ANSI sets base for all implementations of C compilers and published the first
standard of C. The first C standard is popularly known as C89. The current C standard
is commonly referred as C11.
Features of C Language
C is a popular programming language among programmers. It is one of the
widely used programming language in the world.
Portability
C is a machine independent language. C programs can run on a range of
machines that has a C compiler. Today almost every machine has a
minimum C compiler installed on it. Hence, when you write programs in C
you should not worry, whether your program will run on a particular
machine or not. However, C does not supports platform independency as
Java.
Modularity
C programs are modular in nature. We can divide C programs to several modules that
will combine in a single module to build the final program.
Extensibility
C language provides a rich set of built-in library function. We can also build
our own library functions and can use them in future. Because of
modularization of programs, you can extend your C programs anytime.
Speed
The compilation and execution of C programs are faster than modern
programming languages.
Wide acceptability
C programming is widely known among programmers around the world.
Because of its vast popularity, it is suitable for most of the system projects.
Why should I learn C programming?
Whether you are beginning your programming life or you have learnt
programming. Learning C has its own importance, below are the few
advantages of C, over other programming languages.
#include <stdio.h>
int main()
{
float length, width, perimeter;
/*
* Input length and width of rectangle from user
*/
printf("Enter length of the rectangle: ");
scanf("%f", &length);
printf("Enter width of the rectangle: ");
scanf("%f", &width);
return 0;
}
Output
#include <stdio.h>
int main()
{
int num1, num2, num3, max;
return 0;
}
Output
#include <stdio.h>
int main()
{
int i, num;
return 0;
}
Input
Input num: 5
Output
5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50
/*
C program to print right triangle star pattern series
*/
#include <stdio.h>
int main()
{
int i, j, n;
return 0;
}
Output
*
**
***
****
*****
* C program to print mirrored right triangle star pattern series
*/
#include <stdio.h>
int main()
{
int i, j, rows;
return 0;
}
*
**
***
****
*****
* Reverse right triangle star pattern program in C
*/
#include <stdio.h>
int main()
{
int i, j, rows;
return 0;
}
Output
*****
****
***
**
*
/**
* C program to find sum of natural numbers from 1 to n using recursion
*/
#include <stdio.h>
/* Function declaration */
int sumOfNaturalNumbers(int start, int end);
int main()
{
int start, end, sum;
return 0;
}
/**
* Recursively find the sum of natural number
*/
int sumOfNaturalNumbers(int start, int end)
{
if(start == end)
return start;
else
return start + sumOfNaturalNumbers(start + 1, end);
}
Output
Dennis Ritchie
Bell Labs