COURSE SUMMARY
Course Title: 
Computer Programming
Course Code: 
15CSE102
Year Taught: 
2015
2016
2017
2018
Semester: 
2
Type: 
Subject Core
Degree: 
Undergraduate (UG)
School: 
School of Engineering
Campus: 
Bengaluru
Chennai
Coimbatore
Amritapuri

'Computer Programming' is a course offered in the second semester of  B. Tech. programs at the School of Engineering, Amrita Vishwa Vidyapeetham.

Unit 1

Introduction to C language: Structure of a C program, comments, Data types, Variables, constants, Data input and output statements, input assertions; expressions and evaluation. Functions: inter function communication, standard functions, scope. Selection: two way selection, multi-way selection, repetition: concept of loop, loop invariant, pretest and post-test loops, initialization and updating, event and counter controlled loops. Recursion: recursive definition, recursive solution, designing recursive functions, limitations of recursion.

Unit 2

Files and streams, file input output. Arrays - 1D numeric, searching and sorting, 2D numeric arrays: problems with matrices. Pointers: introduction, compatibility, arrays and pointers, Dynamic memory allocation, array of pointers, pointer arithmetic.

Unit 3

Strings: fixed length and variable length strings, strings and characters, string input output, array of strings, string manipulation functions, sorting of strings. Enumerated types, Structures: Structure vs array comparison, complex structures, Structures and functions, Union, binary input output, Command line arguments.

  • Behrouz A. Forouzan and Richard F. Filberg, “Computer Science A structured programming approach using C”, Third Edition, Cengage Learning, 2006.
  • Brian W. Kernighan, Dennis M. Ritchie, “The C Programming Language”, Second Edition, Prentice Hall, 1988.
  • Eric S. Roberts, “Art and science of C”, Addison Wesley, 1995.
  • Jeri Hanly and Elliot Koffman, “Problem solving and program design in C”, Fifth Edition, Addison Wesley (Pearson), 2007.