Problem Solving Using C

Module I

Introduction: The problem solving aspect, Top-down design, Implementation of algorithms, Program verification, efficiency of algorithms. Introduction to C Programming, overview and importance of C, C Program Structure and Simple programs, Creation and Compilation of C Programs under Linux and Windows Platforms.

Module II

Elements of C Language and Program constructs: Character Set, C Tokens, Keywords and Identifier, Constants, Variables, Data types, Variable declaration and assignment of values, Symbolic constant definition. C Operators, Arithmetic operators, relational operators, and logical operators, assignment operators, increment and decrement operators, conditional operators, special operators,arithmetic expressions, evaluation of expressions, precedence of arithmetic operators, Type conversion in expressions, operator precedence and associativity, Mathematical Functions, I/O operations.

Module III

Decision making, Branching and Looping. Decision making with IF statement, Simple IF statement, Ifelse statement, Nesting of Ifelse and elseif Ladder, Switch statement, Conditional operator, Goto statement. Looping While loop, Do-While, and For Loops, Nesting of loops, jumps in loop, skipping of loops.

Module IV

Array & Strings One dimensional array, two dimensional array and multidimensional array, strings and string manipulation functions. The Concept of modularization and User defined functions, Multifunction Program, calling functions, various categories of functions, Nesting of functions and recursion,functions and arrays, scope and lifetime of variables in functions, multi-file programs. Structures & Union structure definition , giving values to members,structure initialization, comparison of structure variables, arrays of structures,arrays within structures, structures within arrays, structures and functions, Unions,bit fields.

Module V

Pointers and Files Understanding pointers, accessing the address of a variable,declaring and initializing pointers, accessing a variable through its pointer, pointer expressions, pointer and arrays, pointer and character string, pointers and functions, pointers and structures, pointer to pointer dynamic memory allocation.Files Defining, Opening and closing files I/O operations on files error handling on files random access of files command line operations. Preprocessor directives,Macro substitution directives, simple macros, macros with arguments, nesting of macros, Compiler control directives.


1.E. Balaguruswami, Programming in ANSI C
2.Brian W. Kernighan & Dennis M. Ritchie, The C Programming Language
3.Yashavant P. Kenetkar, Let us C
4.Byran Gotfried, Schaums Outline series Programming with C
5.Ashok N. Kamthane, Programming in C, Pearson, 2nd Edition.

Problem Solving Using C
Course Information
  • Course Id:BCS1B01
  • Credit:10
  • Days:MTW
  • Timings:60Hrs

Related Courses -