Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary C Programming Complete Notes (Algorithms, Flowcharts, Examples)

Rating
-
Sold
-
Pages
209
Uploaded on
08-12-2025
Written in
2025/2026

These notes provide a complete, beginner-friendly and easy-to-understand explanation of C Programming for B.Tech students. All concepts are explained in simple language with clear examples, diagrams, and outputs. Topics covered include: • Algorithms and flowcharts • Pseudo code and tokens • Data types and operators • Conditional statements and looping • Arrays, strings, and functions • Storage classes and pointers • File handling (basics) • Solved examples with outputs These notes are prepared from the B.Tech course (22ES1CS101 – Programming for Problem Solving) and are useful for: • First-year engineering students • CSE, IT, ECE, EEE branches • Students preparing for exams • Coding beginners • Anyone who wants a strong foundation in C Programming Everything is arranged neatly from basics to graphs, making it perfect for quick revision and exam preparation.

Show more Read less
Institution
Course

Content preview

C PROGRAMMING NOTES
Compilers
Definition: compiler is a translator which translates high level
programming language into machine understandable format.
Algorithm: An Algorithm is a step-by-step procedure to solve a
given problem.Characteristics of an Algorithm:


1. Finiteness: An algorithm terminates after a fixed number of steps.
2. Definiteness: Each step of the algorithm is precisely defined, i.e., the
actions to be carried out should be specified unambiguously.
3. Effectiveness: All the operations used in the algorithm are basic
(division, multiplication, comparison, etc.) and can be performed
exactly in a fixed duration of time.
4. Input: An algorithm has certain precise inputs, i.e. quantities.
5. Output: An algorithm has one or more outputs, that is, the results
of operations which have a specified relation to the inputs.

Exercises:

1. Write an algorithm to swap two numbers without using temporary
variable.

2. Write an algorithm to find roots of a quadratic equation.

3. Write an algorithm to find largest of three numbers

4. Write an algorithm to find sum of first N numbers

5. Write an algorithm to find factorial of a given number.

6. Write an algorithm to generate first N Fibonacci series values.


Flowchart: Flowchart is a graphical representation of an algorithm. The
pictorialrepresentation of the algorithm is called flowchart.


A flowchart is a picture, which shows the sequence in which data are read,
Computingis performed, decisions are made and results are obtained. It
makes use of the basic operations in programming. All symbols are

,connected among themselves to indicate the flow of information and
processing.
The symbols which are used in flowchart are
i) Terminal: The oval represents any terminal point in a program and
generally containssuch words as BEGIN, START, END or STOP.




ii) Input/Output: The parallelogram represents the Input/Output
function i.e. makingdata available for processing (input) or recording of
the processed information (output).




iii) Process: The rectangle represents the processing operation. A process
changes ormoves data. An assignment is normally represented by this
symbol.




iv) Flow direction: Lines or arrows represent the flow direction
function – the flowof control. Normal flow direction is from left to right
or from top to bottom.




vi) Decision making symbol: The diamond represents a decision or

, switching type ofoperations that determines which of the alternative
paths is to be followed.




vii) Connector: The circle represents a function in a flow line.




Exercises

1. Write an algorithm to swap two numbers without using temporary
variable.

2. Write an algorithm to find roots of a quadratic equation.

3. Write an algorithm to find largest of three numbers

4. Write an algorithm to find sum of first N numbers

5. Write an algorithm to find factorial of a given number.

6. Write an algorithm to generate first N Fibonacci series values.


PSEUDO CODE
A Pseudocode allows the programmer to represent the implementation of an
algorithm.
A Pseudo code is an informal way of programming description that does not
require any strict programming language syntax or underlying technology
considerations.
Advantages of Pseudocode
1. Improves the readability.
2. Acts as a bridge between the algorithm and program.
3. The main goal of a pseudo code is to explain what exactly each line of a
program should do, hence making the code construction phase easier
for the programmer.
Example: Consider the following source code example:

, int n = 10
for( i=0;i<n;i++)
printf(n);

The above source code is converted into a pseudo-code to understand in a
better way.

The value ten is assigned to the variable n.
For value = zero to less than a number.
Display the numbers.

BRIEF HISTORY OF C

1. The C programming language is a structure-oriented programming language,
developed at Bell Laboratories in 1972 by Dennis Ritchie.
2. C programming language features were derived from an earlier language
called “B” (Basic Combined Programming Language – BCPL)
3. C language was invented for implementing UNIX operating system.
4. In 1978, Dennis Ritchie and Brian Kernighan published the first edition
“The C Programming Language” and is commonly known as K&R C.
5. In 1983, the American National Standards Institute (ANSI) established a
committee to provide a modern, comprehensive definition of C. The
resulting definition, the ANSI standard, or “ANSI C”, was completed late
1988.
6. Many of C’s ideas & principles were derived from the earlier language B,
thereby naming this new language “C”.

CHARACTERISTICS OF C

● ‘C’ is a structured programming language i.e., a C program can be
divided into multiple blocks where each block represents a function.
● ‘C’ language is suitable for developing both application software as
well as system software.

● It has a wide variety of derived datatypes like arrays, structures,
pointers and unions apart from fundamental data types like integers,
floating point numbers and characters. This makes the language

Written for

Institution
Course

Document information

Uploaded on
December 8, 2025
Number of pages
209
Written in
2025/2026
Type
SUMMARY

Subjects

$5.98
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
kotanikhitha

Get to know the seller

Seller avatar
kotanikhitha VNR VJIET
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 months
Number of followers
0
Documents
1
Last sold
-
Nikhitha’s Programming Notes Hub

Hi! I’m Nikhitha, a B.Tech 2nd-year student from VNR VJIET. I prepare clear, easy-to-understand notes for C Programming, Data Structures (DSA), Java, Python, and R Programming. My notes include: • Simple explanations for beginners • Clean formatting and well-organized concepts • Programs with outputs • Unit-wise summaries • Important exam questions • DSA topics useful for placements &amp; GATE (CSE) These notes are perfect for: • Engineering students • GATE aspirants • Coding beginners • Anyone preparing for exams or interviews

Read more Read less
0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions