Programming Language-I PDF
Programming Language-I PDF
(Deemed to be University)
College of Engineering, Pune
B. Tech. Sem. I: E & TC
SUBJECT: - Programming language -I
Course Prerequisites: Students must possess knowledge about basic fundamentals of computer
and professional Microsoft office development tools.
Course Objectives: This course will introduce the concepts of C language software
development and compiling tool. By the end of the course, student will be familiar with various
fundamentals of C- language.
Course Contents
Unit I (05 Hours)
Introduction
Basic of C: Structure of a C program, identifiers, basic data types and sizes. Constants, variables,
arithmetic, relational and logical operators Managing input and output operations, Sample
programs.
Unit-II
Conditional Statements and Loops (03 Hours)
Decision making within a program, conditions, if statement, if-else statement, loops: while loop,
do while, for loop. Nested loops, infinite loops, switch statement, sample programs.
Unit-III
Arrays & Strings (03 Hours)
Arrays - concepts, declaration, definition, accessing elements, storing elements, Strings and
string manipulations, 1-D arrays, 2-D arrays and character arrays, string manipulations, , Array
applications: Matrix Operations
Unit-IV
Functions (03 Hours)
Basics, parameter passing, storage classes- extern, auto, register, static, scope rules, user defined
functions, , recursive functions, Recursive solutions for Fibonacci series, example c programs.
Passing arrays & strings to functions
Unit -V
Pointers (05 Hours)
Concepts, initialization of pointer variables, pointers and function arguments, passing by address,
address arithmetic, Character pointers and functions, pointers to pointers, pointers and
multidimensional arrays.
Unit-VI
Structures (05 Hours)
Derived types- structures- declaration, definition and initialization of structures, accessing
structures, nested structures, arrays of structures, structures and functions, pointers to structures,
self referential structures, unions, type def, bit-fields, program applications.
Term work will consist of minimum of ten assignments based on C programming language.
List of Practicals
1. a. Write a C program to take user Input and print it on the screen.
b. Write a C program to perform addition or subtraction of two numbers.
c. Write a C program to find whether the number is Odd or Even.
2. a. Write a C program to find out Prime numbers.
b. Write a C program to find out Fibonacci series.
3. Write C programs to print different patterns
4. a. Write a C program to do factorial using recursion.
b. Write a C program to find out Armstrong number.
5. Write a C program to sort the array in Ascending & Descending order.
6. Write C programs to perform operations on 2-Darrays
7. Write a C program to perform different operations on strings.
8. Use of Pointers
a. Write a C program to swap numbers using pointers
b. Write a C program to show the use of pointers in arrays.
c. Write a C program to use functions using pointers.
9. a. Write a C program to create student mark sheet using structures
b. Write a C program to show the use of structure using pointers
Text Books:
Reference Books:
1. Let Us C- Yashwant Kanitkar