# Programming for Problem Solving (3110003)

## Teaching Scheme (in Hours)

Theory Tutorial Practical Total
3 0 2 4

Subject Credit :  4

Theory
ESE (E)
Theory
PA (M)
Practical
ESE Viva (V)
Practical
PA (I)
Total
70 30 30 20 150

## Syllabus Content

###### Unit-1:  Introduction to computer and programming

Introduction, Basic block diagram and functions of various components of computer, Concepts of Hardware and software, Types of software, Compiler and interpreter, Concepts of Machine level, Assembly level and high level programming, Flowcharts and Algorithms

###### Unit-2:  Fundamentals of C

Features of C language, structure of C Program, comments, header files, data types, constants and variables, operators, expressions, evaluation of expressions, type conversion, precedence and associativity, I/O functions.

###### Unit-3:  Control structure in C

Simple statements, Decision making statements, Looping statements, Nesting of control structures, break and continue, goto statement.

###### Unit-4:  Array & String

Concepts of array, one and two dimensional arrays, declaration and initialization of arrays, string, string storage, Built-instring functions.

###### Unit-5:  Functions

Concepts of user defined functions, prototypes, definition of function, parameters, parameter passing, calling a function, recursive function, Macros, Pre-processing.

###### Unit-6:  Recursion

Recursion, as a different way of solving problems. Example programs, such as Finding Factorial, Fibonacci series, Ackerman function etc. Quick sort or Merge sort

###### Unit-7:  Pointers

Basics of pointers, pointer to pointer, pointer and array, pointer to array, array to pointer, function returning pointer.

###### Unit-8:  Structure

Basics of structure, structure members, accessing structure members, nested structures, array of structures, structure and functions, structures and pointers.

###### Unit-9:  Dynamic memory allocation

Introduction to Dynamic memory allocation, malloc, calloc.

###### Unit-10:  File management

Introduction to file management and its functions.

## Reference Books

Sr. Title Author Publication Amazon Link
1 Programming in ANCI C Balagarusamy E Tata McGraw-Hill Publishing
2 Programming with C Gottfried Tata McGraw-Hill Publishing Company
3 Star C Programming STAR Certification
4 C Programming Language Kernighan B W and Ritchie D M Prentice Hall
5 Let us C Kanetkar Y. P. BPB Publication
6 Fundamentals of Computing and Programming in C Pradip Dey, Manas Ghosh Oxford University Press
7 Computer programming Ashok N. Kamthane Pearson Education
8 How To Solve It By Computer R.G. Dromey Pearson Education
9 Programming in C Reema Thareja Oxford

### BE (CI) ⇒ Semester: 1

Darshan Institute of Engineering & Technology is a leading institute offering undergraduate (B.E.), postgraduate (M.E.) and Diploma programs in engineering.

## Our Contacts

At Hadala, Rajkot - Morbi Highway,
Gujarat-363650, INDIA

(+91) 97277 47310
(+91) 97277 47311