COURSE SUMMARY
Course Title: 
Programming in C
Course Code: 
18CSA113
Year Taught: 
2018
Semester: 
2
Degree: 
Undergraduate (UG)
School: 
School of Engineering
Campus: 
Amritapuri

'Programming in C' is a course offered in the second semester of B. C. A. (Bachelor of Computer Applications) program at School of Engineering, Amrita Vishwa Vidyapeetham, Amritapuri.

Unit1

Introduction to C language - structure of ‘C’ program, Programming elements(tokens) –Classes of data types –Declaration of variables, assigning values to variables, defining symbolic constants, escape sequences (backslash character constants), Operators–operator precedence and associativity, Expressions – Evaluation of expressions, type conversions(type casting).

Unit 2

Input and Output operations – formatted and unformatted input and output–Conversion specifiers- Conditional and Control structures

Unit 3

Arrays – single dimensional arrays - declaration –memory representation– initialization and access. 2D arrays and multidimensional arrays. Strings – defining strings, initializing, accessing, character handling functions, arithmetic operations on characters, character by character input and output, string handling functions, array of strings and its features. Pointers –Introduction, declaring and initializing pointer variables, pointer expressions, pointers and arrays, pointers and strings, array of pointers.

Unit 4

Functions – definition-declaration-prototypes and function call- actual and formal arguments-types of functions- call by value-call by reference-nesting of functions-recursive functions-pointers to functions-storage class specifiers. Enumerated data types- Preprocessor directives – Macros - File inclusion, Command line arguments.

Unit 5

Structures – definition-declaration-initialization-accessing structures- array of structures, array within structures, structures within structures, self-referential structures, pointers to structures, uses of structures. Union- definition- union of structures. Files – Reading and writing files - file handling functions – file opening modes – file operations

TEXTBOOKS

  • “Let us C”, YashavantKanetkar, 13th Edition, BPB Publications.
  • “Programming in ANSI C”, E. Balagurusamy, Sixth Edition, Tata McGraw-Hill Publishing Company Limited.

REFERENCES

  • “Test your C skills”, YashavantKanetkar,
  • “Exploring C”, YashavantKanetkar,