C Programming Language - PowerPoint PPT Presentation

About This Presentation
Title:

C Programming Language

Description:

C is a broadly useful, procedural PC programming language supporting organized programming, lexical variable degree, and recursion, while a static sort framework averts unintended activities. It was at first created by Dennis Ritchie somewhere in the range of 1969 and 1973. – PowerPoint PPT presentation

Number of Views:256
Slides: 4
Provided by: aliaali
Category: Other
Tags: c_language | c

less

Transcript and Presenter's Notes

Title: C Programming Language


1
C Programming Language
C is a broadly useful, procedural PC programming
language supporting organized programming,
lexical variable degree, and recursion, while a
static sort framework averts unintended
activities. It was at first created by Dennis
Ritchie somewhere in the range of 1969 and 1973.
It was for the most part created as a framework
programming language to compose the working
framework. The primary highlights of C language
incorporate low-level access to memory, the basic
arrangement of catchphrases, and clean style,
and these highlights make C language appropriate
for framework programmings like working
framework or compiler improvements.
The simple example program of C programming
language is below which will help to understand
every part (function, library, etc.) of it
includeltstdio.hgt int main () int
x printf (enter the value of x )
scanf(d/n,x) printf(The value of xd,x)
2
return 0 This program is a user-defined input
program where the user gives the value of the
input. It will only print the value of that
number. This program will not do any
calculation, only print the value and its output
dependents on the input. Here, include ltstdio.hgt
define or add the header library to the program
where stdio.h is the header library. There are
many header libraries in C and each do different
works. They are stdio.h define the core input
and output functions. math.h define
mathematical functions. stdlib.h define numeric
conversion functions. stdint.h define the
exact width integer types. string.h define
string handling functions. stddef.h define
many useful types. Then int main () is the main
function declaration. This is the syntax of
declaring the main function. This part of a C
program is to declare the main function. Then
inside lies the function or the actual
program. It will define what this function will
do and how will it work. It is also called the
body of the function. int x is the variable
declaration part where int means that the
variable will be the integer type (other types
like float, double, long, short, string, etc.)
and the variable is x. In the body of a function
in C programming has variables, implementation
(searching, sorting, printing, scanning, etc.).
Here, we did print a line and take or scan the
value of input from the user and then again print
it.
3
Then the last part of return 0 is called the
return statement. The last part of any C program
is the arrival explanation. The arrival
explanation alludes to the returning of the
qualities from a capacity. This arrival
explanation and return worth rely on the arrival
of the capacity. For instance, on the off chance
that the arrival type is void, at that point
there will be no arrival proclamation. In some
other cases, there will be an arrival
articulation and the arrival worth will be of
the kind of the predefined return-type. Numerous
later dialects have acquired grammar/includes
straightforwardly or in a roundabout way from
the C language. Like the sentence structure of
Java, PHP, JavaScript, and numerous different
dialects are for the most part dependent on the
C language. C is a superset of the C language
(There are not many projects that may gather in
C, yet not in C). Resource Link
https//www.ecomboosterplus.com/c-programming-lang
uage/
Write a Comment
User Comments (0)
About PowerShow.com