After completing the course, students will learn the following:
• Understand the basic terminology used in computer programming
• Write, compile and debug programs in C language.
• Use different data types in a computer program.
• Design programs involving decision structures, loops and functions.
• Understand the use of pointers.
• Use different data structures and create/update basic data files.
Introduction to Programming
Basic computer organization, operating system, editor, compiler, interpreter, loader, linker, program development. Variable naming, basic function naming, indentation, usage and significance of comments for readability and program maintainability. Types of errors, debugging, tracing/stepwise execution of program, watching variables values in memory.
Constants, Variables and data Types
Character Set, C tokens, Keywords and Identifiers, Constants, Variables, Data types, Declaration of Variables, Assigning values to variables, typedef, and Defining symbolic constants, printf - scanf function.
Operators and Expression
Introduction, Arithmetic Operators, Relational Operators, Logical Operators, Assignment Operators, Increment and Decrement Operators, Conditional Operators, Special Operators, Evaluation of expressions, Precedence of arithmetic operators, Type conversions in expressions, Operator precedence and associativity.
Input and Output Management
Operators Introduction, reading a character, writing a character, formatted input, formatted output.
Branching introduction, Decision making with IF statement, the IF- ELSE statement, nesting of IF- ELSE statements, the ELSE IF ladder, switch statement, and the turnery Operator, the GOTO statement.
Introduction, entry controlled and exit controlled loop, the WHILE statement, the DO-WHILE statement, The FOR statement, Break and Continue.
Introduction, One-dimensional arrays, Two-dimensional arrays, Concept of Multidimensional arrays.
Introduction, Declaring and initializing string variables, Reading string from terminal, Writing string to screen, String, atoi(), Operations: String Copy, String Compare, String Concatenation And String Length(using predefined functions & without using them), array of strings.
Introduction, Need for user-defined functions, The form of C function, elements of UDF, Return values and their types, Calling a function, category of functions, Nesting of functions, Recursion , Functions with arrays, The scope and Lifetime of variables in functions, multi-file program
Structures and Unions
Introduction, Structure definition, declaring and initializing Structure variables, accessing Structure members, Copying & Comparison of structures, Arrays of structures, Arrays within structures, Structures within Structures, Structures and functions, Unions.
Introduction, Understanding pointers, Accessing the address of variable, Declaring and initializing pointers, Accessing a variable through its pointer, Pointer expressions, Pointer increments and scale factor, Pointers and arrays, Pointers & character strings, Pointers & Functions, Function returning multiple values, Pointers and structures.
File Management in c and CONSOLE I/O
Introduction, Defining files and its Operations, Error handling during I/O operations, Random access files, Command line arguments. Types of files, File vs. Console, File structure, File attributes, Standard i/o, Formatted i/o, Sample programs.
Programming in C
Let Us C
The C Programming Language
|ESFP - I.pdf||232.3 KB|