0% found this document useful (0 votes)
28 views20 pages

C Language

The document provides an overview of C language concepts including its history, structure, data types, operators, control structures like if-else and switch case, looping, arrays, pointers, and structures. It also includes examples of basic C programs and code snippets. The training covered various fundamental and advanced C programming concepts over multiple sessions.

Uploaded by

indraysh vijay
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)
28 views20 pages

C Language

The document provides an overview of C language concepts including its history, structure, data types, operators, control structures like if-else and switch case, looping, arrays, pointers, and structures. It also includes examples of basic C programs and code snippets. The training covered various fundamental and advanced C programming concepts over multiple sessions.

Uploaded by

indraysh vijay
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/ 20

INDUSTRIAL TRAINING REPORT

BY UDEMY
ON C LANGUAGE

Session
2020-21
• SUBMITTED BY : SUBMITTED TO
• Name MS. Deepmala

• Roll no
• Semester 3
INDUSTRIAL TRAINING

DECLARATION

I affirm that the industrial training report titled ‘C Language’ from ‘Udemy’ being
submitted in partial fulfillments of the requirements for the award of degree of
Batchelor of technology in Electronics and Communication engineering is the original
work carried out by me . It has not formed the part of any other project work
submitted for award of any degree or diploma , either in this or any other institution.

(Signature)
Register No.

I certify that the declaration made above by the candidate is true

(Signature)
Ms.Deepala kulshestra
Industrial Training Coordinator
Department of Electrical Engineering
Acknowledgements

The successful completion of this Industrial Training mark the beginning of an ever going
learning experience of converting ideas and concepts into real life. This training was a
quite learning experience for me at each and every step. At the same time it has given me
confidence to work in professional setup.

First of all I would like to give thanks to Dr. Prerak Bharadwaj Head of Department,
Electronics and Communication Engineering for giving me the opportunity to work in this
esteemed organization, which not only has increased our awareness about latest fields but
also taught me the importance of team building. With the deep sense of gratitude, I
express my sincere thanks to Mr. Shailendra Shrivastava, Assistant Professor, Electrl
Engineering for his active support and continuous guidance to complete this training. Also
I would like to give thanks to other faculty members in Electrical Engineering Department
for taking keen interest in my training and giving valuable suggestions and helping me
directly or indirectly to complete this industrial training.

Name
Roll No.
Semester : III
CONTENTS

Introduction to C
About “C”
Rules of writing a C program
First C program
C-Program Structure
Simple Data Types
Characteristics
If Else statement
Switch Case
Looping
Array
Pointer
Structure
Conclusion
Introduction to ‘C’
 C is a general purpose language which is very closely associated with UNIX
for which it was developed in Bell Laboratories.
 Most of the programs of UNIX are written and run with the help of ‘C’.
 Many of the important ideas of ‘c’ stem are from BCPL by Martin Richards.
 In 1972 , Dennies Ritechie at Bell Laboratories wrote C Language which
caused a revolution in computing world.
 From beginning C was intended to be useful for busy programmers to get
things done easily because C is powerful , dominant and supple language.
ABOUT “C”
 C programming language – Structured and disciplined approach to
program design.

o C is a structured programming language


o C supports functions that enables easy maintainability of code , by
breaking large file into smaller modules
o Comments in C provides easy readability
o C programs built from
(a) variable and type declarations
(b) Functions
(c) Statements
(d) Expressions
Rules for writing a C program
 Case sensitive language – keywords are
written in lowercase
 Execution of program starts from main()
function.
 Each instruction is terminated by a semicolon
(;)
First C program
#include <stdio.h>
void main()
{
/* my first program in C to print a message
*/ printf(“welcome");
}
C – Program Structure
 The first line of the program #include <stdio.h> is a
preprocessor command, which tells a C compiler to
include stdio.h file before going to actual compilation.
 The next line void main() is the main function where
program execution begins.
 The next line /*...*/ is a comment and will be ignored by
the compiler.
 The next line printf(...) is another function available in C
which causes the message “welcome” to be displayed
on the screen.
Simple Data–Types
 integer data-types :
 char, short, int, long, unsigned char, unsigned short,…
 floating point data-types :
 float, double, long double
 logical data-type :
 bool
 bool constants : true, false
 character data-type :
 char
 character constants in single quotes : ’a’, ’\n’
 text data-type :
 string
 string constants in double quotes : ”Hello world”
CHARACTERISTICS
 There are a small, fixed number of keywords, including a full set of flow of
control primitives : for, while, if, do while and switch.

• More than one assignment may be performed in a single statement.

• There are a large number of arithmetical and logical operators, such as +,


+=, ++, &, ~, etc.
IF ELSE STATEMENT
The if statement is a powerful decision making statement .
If ....else statement is a extention of the simple if statement
. The general form is :
if(test expression)
{
true-block statement(s)
}
else {
false –block statement(s)
}
SWITCH CASE
It is a control statement that provides a facility
for multiway branching from a particular point.
syntax:
switch(expression)
{
case labels:
break;
}
Looping
(1) For loop (syntax) -
For(intialization ; test condition ; increment)
{
Body of the loop
}
(2) While loop- (3) Do while loop-
While(test condition) do
{ {
Body of the loop body of the loop
} }
Array
An array is a collection of elements of the same
data type.
Syntax :
data type array name[size];
Type of array :
 1 dimensional
 2 dimensional
 Multi-dimensional
Pointer
C allow us to store the address of one variable
in another variable.
Syntax:
data type *ptrname;
Structure
Binding of different type of data member in a
single entity.
Syntax: struct structurename
{ different datatype
};
strings
• A special kind of array is an array of characters
ending in the null character \ 0 called string
arrays.
• A string is declared as an array of characters
• Char s [10]
• Char p [30]
• When declairing a string don’t foget to leave a
space for the null character which is also known
as the string terminator character
Conclusion
• It is native for an Extension professional to feed that if information during a learning
activity, the educational mission has been accomplished . The broader mandate that
learning generate change in behavior, practice, or belief requires a much more
sophisticated science and art. In today’s information- rich culture, extension’s store of
information no longer makes the organization unique. Rather, Extension’s organization
strength and uniqueness lie in the experience and capacity of its professional to
motivate individual and group to action .

It is important for Extension educators to develop and field test useful models for
program design and delivery that include behavior change. It is equally important for
the models to be linked to sound educational theory that will be valued by partnering
agencies and understood by the targeted clientele.

The process described in this article accomplished these objectives and resulted in
information that now provides a framework for quality training in a broad range of
programming . Further development of the model has resulted in additional insights
with practical application beyond the scope of this article.
THANK
you

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy