I YEAR I SEMESTER – COURSE CODE: 7BCE1C1 CORE COURSE-I–PROGRAMMING IN C Unit I Overview of C: History of C Importance of C Basic Structure of C Programs – – – Programming Style Character Set C Tokens Keywords and Identifiers Constants, – – – – Variables and Data Types Declaration of Variables Defining Symbolic Constants – – – Declaring a variable as a constant overflow and underflow of data Operators – – andExpressions: Arithmetic, relational, logical, assignment operators increment and – decrement operators, conditional operators, bitwise operators, special operators Arithmetic – Expressions- Evaluation of Expressions Precedence of Arithmetic Operators Type – – Conversions in Expressions Operator Precedence and Associativity Mathematical – – functions. Unit II Reading and Writing a Character Formatted Input, Managing I/O Operations: – Output Decision Making & Branching: if statement - if else statement - nesting of if else – statements - else if ladder switch statement the ?: operator goto statement the while – – – – statement do statement the for statement jumps in loops. – – – Unit III One-Dimensional Arrays Declaration, Initialization Two-Dimensional Arrays: – – Arrays Multi-dimensional Arrays Dynamic Arrays Initialization. Strings: Declaration, – – – Initialization of string variables reading and writing strings string handling functions. – – Unit IV User-defined functions: need multi-function programs elements of user defined – – functions definition return values and their types function calls, declaration, category – – – – all types of arguments and return values nesting of functions recursion passing arrays, – – – strings to functions scope visibility and life time of variables. Structures and Unions: – Defining a structure declaring a structure variable accessing structure members – – – initialization copying and comparing operation on individual members array of – – – structures arrays within structures structures within structures structures and functions – – – – unions size of structures bit fields. – – Unit V Pointers: the address of a variable declaring, initialization of pointer variables – – accessing a variable through its pointer chain of pointers pointer increments and scale – – factors pointers and character strings pointers as function arguments pointers and – – – structures. Files: Defining, opening, closing a file IO Operations on files Error handling – – during IO operations command line arguments. – Text Book: Programming in ANSI C, E.Balagurusamy, 6th Edition, Tata McGraw Hill Publishing Company, 2012.
I YEAR – I SEMESTER COURSE CODE: 7BCE1C1 CORE COURSE-I–PROGRAMMING IN C Unit I Overview of C: History of C – Importance of C – Basic Structure of C Programs – Programming Style – Character Set – C Tokens – Keywords and Identifiers – Constants, Variables and Data Types – Declaration of Variables – Defining Symbolic Constants – Declaring a variable as a constant – overflow and underflow of data – Operators andExpressions: Arithmetic, relational, logical, assignment operators – increment and decrement operators, conditional operators, bitwise operators, special operators – Arithmetic Expressions- Evaluation of Expressions – Precedence of Arithmetic Operators – Type Conversions in Expressions – Operator Precedence and Associativity – Mathematical functions. Unit II Managing I/O Operations: Reading and Writing a Character – Formatted Input, Output – Decision Making & Branching: if statement - if else statement - nesting of if else statements - else if ladder – switch statement – the ?: operator – goto statement – the while statement – do statement – the for statement – jumps in loops. Unit III Arrays: One-Dimensional Arrays – Declaration, Initialization – Two-Dimensional Arrays – Multi-dimensional Arrays – Dynamic Arrays – Initialization. Strings: Declaration, Initialization of string variables – reading and writing strings – string handling functions. Unit IV User-defined functions: need – multi-function programs – elements of user defined functions – definition – return values and their types – function calls, declaration, category – all types of arguments and return values – nesting of functions – recursion – passing arrays, strings to functions – scope visibility and life time of variables. Structures and Unions: Defining a structure – declaring a structure variable – accessing structure members – initialization – copying and comparing – operation on individual members – array of structures – arrays within structures – structures within structures – structures and functions – unions – size of structures – bit fields. Unit V Pointers: the address of a variable – declaring, initialization of pointer variables – accessing a variable through its pointer – chain of pointers – pointer increments and scale factors – pointers and character strings – pointers as function arguments – pointers and structures. Files: Defining, opening, closing a file – IO Operations on files – Error handling during IO operations – command line arguments. Text Book: Programming in ANSI C, E.Balagurusamy, 6th Edition, Tata McGraw Hill Publishing Company, 2012.