72ac1introduction To Computers and Programming in C
72ac1introduction To Computers and Programming in C
BTC 105
Credit Units:
Course Contents:
Module I: Introduction Introduction to computer, history, von-Neumann architecture, memory system (hierarchy, characteristics and types), H/W concepts (I/O Devices), S/W concepts (System S/W & Application S/W, utilities). Data Representation: Number systems, character representation codes, Binary, octal, hexadecimal and their interconversions. Binary arithmetic, floating point arithmetic, signed and unsigned numbers, Memory storage unit. Module II: Programming in C History of C, Introduction of C, Basic structure of C program, Concept of variables, constants and data types in C, Operators and expressions: Introduction, arithmetic, relational, Logical, Assignment, Increment and decrement operator, Conditional, bitwise operators, Expressions, Operator precedence and associativity. Managing Input and output Operation, formatting I/O. Module III: Fundamental Features in C C Statements, conditional executing using if, else, nesting of if, switch and break Concepts of loops, example of loops in C using for, while and do-while, continue and break. Storage types (automatic, register etc.), predefined processor, Command Line Argument. Module IV: Arrays and Functions One dimensional arrays and example of iterative programs using arrays, 2-D arrays Use in matrix computations. Concept of Sub-programming, functions Example of user defined functions. Function prototype, Return values and their types, calling function, function argument, function with variable number of argument, recursion. Module V: Advanced features in C Pointers, relationship between arrays and pointers Argument passing using pointers, Array of pointers. Passing arrays as arguments. Strings and C string library. Structure and Union. Defining C structures, Giving values to members, Array of structure, Nested structure, passing strings as arguments. File Handling.
Examination Scheme:
Components A CT S/V/Q HA EE Weightage (%) 5 10 8 7 70 CT: Class Test, HA: Home Assignment, S/V/Q: Seminar/Viva/Quiz, EE: End Semester Examination; Att: Attendance
Text: ANSI C by E Balagurusamy Yashwant Kanetkar, Let us C, BPB Publications, 2nd Edition, 2001. Herbert Schildt, C: The complete reference, Osbourne Mcgraw Hill, 4th Edition, 2002. V. Raja Raman, Computer Programming in C, Prentice Hall of India, 1995. References: Kernighan & Ritchie, C Programming Language, The (Ansi C Version), PHI, 2nd Edition. J. B Dixit, Fundamentals of Computers and Programming in C. P.K. Sinha and Priti Sinha, Computer Fundamentals, BPB publication.