First Year B. Tech.
(MECH/EE/CIVIL) (Semester–II)
Course Code 01GEL Course Name Fundamentals of C Programming
Teaching Scheme Evaluation Scheme
L T P Credits SE-I Marks SE-II Marks SEE Marks
2 -- -- 2 25 25 50
Pre-requisites:
Course Objectives:
01 To introduce basic programming concept
02 To make students familiar with representing solution with algorithm and flowchart.
03 To develop program applying concept in C Language
Course Outcomes:
At the end of the course, students will be able to
01 Explain terminology in C Language.
02 Design algorithm to solve the problem.
03 Build a program for developed algorithm in C Language
04 Analyze a C program.
Course Contents
Unit I Introduction to Computer System 4 Hours
Basic computer Organization, Number Systems, Processor and Memory, Secondary Storage devices –
Magnetic Disk, Computer Software, Planning the Computer Program, Flow Chart, Computer Languages –
Machine, Assembly, and Higher Level Languages.
Unit II Introduction to C Language 4 Hours
History of C, The C character set, Constants, Types of C Constants, Variables, Types of C Variables, Rules
for variable names, Keywords, The first C Program, Input and Output Statements. C Instructions – Type
declaration instructions, Arithmetic Instructions, Integer and float conversion, Type conversion in
assignment, Hierarchy of operations, Associativity of operators, Data types.
Unit III Control Statements 5 Hours
The if-else statement, Multiple Statements within if-else, Nested if- else, Use of logical Operators, The
else-if clause, The ! Operator, Hierarchy(Precedence) of Operators, The conditional operator.
Unit IV Loop Control Instructions 5 Hours
Loops, The While loop,The for loop – nesting of loops, multiple initializations break and continue
statements, The do-while loop
Unit V Arrays 5 Hours
Array Declaration, accessing array elements, array initialization, Bound checking, Two-dimensional
array – Declaration, accessing array elements, initialization, Memory map
Unit VI Functions 5 Hours
Function declaration, definition, calling function, passing values between functions, order of
passing arguments, argument mismatch, return type of function, Library functions, Recursion.
Arguments to “main” function
Texts Books:
A textbook of Engineering Physics by M. N. Avadhanulu, P. G. Kshirsagar and T. V. S. Arun
1
Murthy, Eleventh edition, S Chand and Company Ltd. New Delhi-110055.
2 Solid State Physics, S O Pillai, New Age International Private Limited, 8th Edition, 2018.
3 Engineering Physics by Gupta and Gour, Dhanpat Rai Publications, 2016 (Reprint).
4 Concepts of Modern Physics, ArthurBeiser, McGraw-Hill, 6th Edition, 2009
5 Lasers and Non-Linear Optics, B B Loud, New age international, 2011 edition.
Reference Books:
1 Computer Fundamentals, 4th Edition, P K Sinha, BPB Publications.
2 Let Us C, 16th Edition, Yashavant Kanetkar, BPB Publication
The C Programming Language, 2nd Edition, Brian W. Kernighan, Dennis Ritchie, Pearson
3
Education India.
4 C How to Program 7th Edition, Deitel, Pearson Education India
Supplementary Readings:
1) Learn-C.org - Interactive tutorials to get started with C programming.
2) Tutorials Point C Programming
3) W3Schools C Tutorial
First Year B. Tech. (MECH/EE/CIVIL) (Semester–II)
Course Code 01GEP Course Name Fundamentals of C Programming Lab
Teaching Scheme Evaluation Scheme
L T P Credits CIE Marks SEE Marks
-- -- 2 1 50 ---
Pre-requisites:
Course Objectives:
01 To design an algorithm to tackle the given problem.
02 To apply C programming concepts to solve a given problem
03 To implement programming solutions for the given problem
04 To analyze the developed program's performance and effectiveness.
Course Outcomes:
At the end of the course, students will be able to
01 Explain basic concepts of programming language.
02 Design an algorithm to solve the problem.
03 Build a program for developed algorithm in C Language
04 Analyze a C program.
List of Experiments
1 C Program to find addition, subtraction, multiplication, and division of two numbers.
2 C Program to find the square and cube of a given number.
3 C Program to swap two numbers.
4 C Program to check whether a number is even or odd.
5 C Program to find the large and small numbers among two numbers.
6 C Program to calculate the area of a circle.
7 C Program to display factors of a number.
8 C Program to generate multiplication table.
9 C Program to calculate average using arrays.
10 C Program to find the largest element of an array.
11 C Program to find the transpose of a matrix.
12 With using user-defined function write a program to find the length of a string.
13 C Program to Find the square of the any number using Library function.
Reference Books:
1
Computer Fundamentals, 4th Edition, P K Sinha, BPB Publications.
2
Let Us C, 16th Edition, Yashavant Kanetkar, BPB Publication
3 The C Programming Language, 2nd Edition, Brian W. Kernighan, Dennis Ritchie, Pearson Education
India.
4
C How to Program 7th Edition, Deitel, Pearson Education India
Supplementary Readings:
1) Learn-C.org - Interactive tutorials to get started with C programming.
2) Tutorials Point C Programming
3) W3Schools C Tutorial