C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972.
It is a very popular language, despite being old.
C is strongly associated with UNIX, as it was developed to write the UNIX operating system.
UNIT-I
Fundamentals of C Programming: Overview of C: History of ‘C’, Structure of ‘C’ program. Keywords, Tokens, Data types, Constants, Literals and Variables, Operators and Expressions: Arithmetic operators, Relational operator, Logical operators, Expressions, Operator: operator precedence and associatively, Type casting, Console I/O formatting, Unformatted I/O functions: getch(), getchar, getche(), getc(), putc(), putchar().
UNIT- II
Control Constructs: If-else, conditional operators, switch and break, nested conditional branching statements, loops: do while, while, for, Nested loops, break and continue, goto and label, exit function.
Functions: Definition, function components: Function arguments, return value, function call statement, function prototype, Types of function, Scope and lifetime of variable, Call by value and call by reference. Function using arrays, function with command line argument. User defined function: maths and character functions, Recursive function.
UNIT-III
Array: Array declaration, One and Two dimensional numeric and character arrays, Multidimensionalarrays.
String: String declaration, initialization, string manipulation with/without using library function.
Structure, Union and Enum – Structure: Basics, declaring structure and structure variable, typedef statement, array of structure, array within structure, Nested structure; passing structure to function, function returning structure. Union: basics, declaring union and union variable, Enum: declaring enum and enum variable.
UNIT- IV
Pointer: Definition of pointer, Pointer declaration, Using & and * operators. Void pointer, Pointer to pointer, Pointer in math expression, Pointer arithmetic, Pomter comparison, Dynamic memory allocation functions — malloc, calloc, realloc and free, Pointer vs. Array, Array of pointer, Pointer to array, Pointers to function, Function returning pointer, Passing function as Argument to function, Pointer to structure, Dynamic array of structure through pointer to structure.
UNIT-V
File Handling and Miscellaneous Features: File handling: file pointer, File accessing functions: fopen, fclose, fputc, fgetc, fprintf, fscanf, fread, fwrite,beof, fflush, rewind, fseek, ferror. File handling through command line argument. Introduction to C preprocessor #include, #define, Conditional
compilation directives: #if, #else, #elif, #endif, #1fndef etc.