Babu Banarasi Das University BCS-305: Programming in ‘C’ Unit-1 Programming Environment, Concept of algorithm, Strategy for designing Algorithms, Top-down development, Stepwise refinement, flowchart, Programming Languages, Assembler, Compiler, Interpreter, Systematic Development of Programs, Program Writing and execution, Introduction to the design and implementation of correct. efficient and maintainable programs, Structured Programming Concept, Number System and Conversion Methods. Introduction to C language: Identifiers, Keywords, Constants and Variables in C. Fundamental Datatypes in C: Integer types, short, long. unsigned Character types, single and double precision floating point. Storage Classes in C: automatic, register, static, extern. Unit-2 Operators and Expressions in C: Arithmetic, Relational, Logical, Assignment, Bitwise, Conditional, Increment and Decrement, Special Operators such as comma, sizeof etc, Type Conversion in C, Operator Precedence and Associativity, Mixed mode operations. Standard Input/Output Functions: printf(), scanf(), getch() etc . Conditional and Control Statements: if statement, if-else statement, nested if-else statement, else if ladder, switch statements, restrictions on switch values, use of break and default statement with switch. Looping or Iteration: Uses of while, for and do-while loops, nesting of loops, use of break and continue statements. Unit-3 Arrays: Array notation and representation, using one dimensional, two dimensional and multi-dimensional arrays, arrays of unknown and varying size. Searching and sorting in arrays. Strings: String declaration and initialization, String manipulation. Structures: Purpose and use of structures, declaring and assigning of structures, accessing structure elements, Array of structures, Arrays within structures. Union: Utility of unions, union of structures. Pointers: Understanding Pointers, Declaration and initialization of pointer variables, Accessing the address of the variable, Pointer arithmetic, Pointers and arrays. Dynamic Memory Allocation: Stack, Linked list. Unit-4 Functions: Function Declaration, function Definition, function call, Passing values between functions Global and local variables and their scope,Call by value and call by reference, Recursion, Pointers to functions, Declaration of a pointer to a function, Initialization of function pointers, Calling a function using a function pointer, Passing a function to another function, How to return a function pointer. Unit-5 The C preprocessor: C preprocessor directives, defining and calling macros, conditional compilation, passing values to the compiler. File Handling in C: Types of files, Defining, opening and closing of a file, Input/output operations on files. Multiple file handling in C. Standard C library functions: Math functions such as log, sin etc, String handling functions such as strlen(), strcpy() etc. 6
Babu Banarasi Das University Text/Reference Books: 1. Jeri R. Hanly, Elliot B.Koffman:”Problem Solving and Program Design in C”, Pearson Addison-Wesley, 2006. 2. Behrouz A.:”Computer Science- A Structured Programming Approach Using C”. 3. Forouzan, Richard F. Gilberg, Thomson, Third Edition [India Edition], 2007 4. Yashwant P. Kanetkar:”Let Us ‘C’” ,bpb publications, 9th Edition 5. E Balaguruswamy:”Computer Concepts and Programming in C,Tata Mc Graw Hill publications,3rd Edition. 7