Methodology Of Programming And C Language

SYllabus

Unit 1

Introduction to programming, Classification of computer languages, Language translators (Assembler, Compiler, Interpreter), Linker, Characteristics of a good programming language, Factors for selecting a language, Subprogram, Purpose of program planning, Algorithm, Flowchart, Pseudocode, Control structures (sequence, selection, Iteration), Testing and debugging

Lecture Note

Unit 2

C Character Set, Delimiters, Types of Tokens, C Keywords, Identifiers, Constants, Variables, Rules for defining variables, Data types, C data types, Declaring and initialization of variables, Type modifiers, Type conversion, Operators and Expressions- Properties of operators, Priority of operators, Comma and conditional operator, Arithmetic operators, Relational operators, Assignment operators and expressions, Logical Operators, Bitwise operators.

Unit 3

Input and Output in C – Formatted functions, unformatted functions, commonly used library functions, Decision Statements If, if-else, nested if-else, if-else-if ladder, break, continue, goto, switch, nested switch, switch case and nested if. Loop control- for loops, nested for loops, while loops, do while loop.

Unit 4

Array, initialization, array terminology, characteristics of an array, one dimensional array and operations, two dimensional arrays and perations. Strings and standard functions, Pointers, Features of Pointer, Pointer and address, Pointer declaration, void wild constant pointers, Arithmetic operations with pointers, pointer and arrays, pointers and two dimensional arrays.

Unit 5

Basics of a function, function definition, return statement, Types of functions, call by value and reference. Recursion -Types of recursion, Rules for recursive function, direct and indirect recursion, recursion vs iterations, Advantages and disadvantages of recursion. Storage class, Structure and union, Features of structures, Declaration and initialization of structures, array of structures, Pointer to structure, structure and functions, typedef , bitfields , enumerated data types, Union, Dynamic memory allocation, memory models, memory allocation functions.