|
|
|
1.4 C PROGRAMMING
UNIT – I:
C character set, Delimiters, The C Keywords, Identifiers, Constants, Variables, Rules for Defining Variables, Data Types, Declaring Variables, Initializing Variables, Type Conversion, Priority of Operators and their Clubbing, Comma and Conditional Operator, Arithmetic Operators, Relational Operators, Logical Operators, Bitwise Operators, Input and Output in C, Formatted and Unformatted Functions, Library Functions.
UNIT – II:
If statement, if…else statement, various forms of if, nested if, break statement, continue statement, go to statement, switch statement, nested switch statement, for statement, while statement, do while statement, arrays, working with string and standard functions.
UNIT – III:
Introduction to pointers, pointer declaration, Arithmetic Operations with pointers, pointers and arrays, pointers and two, dimensional arrays, array of pointers, pointers to pointers, pointers and strings, void pointers, function definition and declaration, prototypes, types of functions, call by value and reference, functions returning more values, function as an argument, function with operators, function and decision statements, function and loop statements, function with arrays and pointers, recursion, pointer to function, storage classes.
UNIT – IV:
Preprocessor directives, structures and unions, bit wise operators, files, command line arguments, Dynamic memory allegation, graphics in C.
Text Book:
[1] Ashok N. Kamthane, Programming with ANSI and Turbo C, Pearson Education, New Delhi. C PROGRAMMING LAB
BASIC TECHNIQUES: Swapping of the contents of two variables- Finding the sum of digits of a given number- Reversing a given number.
DECISION MAKING: Finding the largest and the smallest of a given array- solving a quadratic equation- selecting an operation based on a menu.
LOOPING TECHNIQUES & ARRAYS: Finding the sum to n terms of a sine series- Matrix Multiplication- Transpose-Polynomial addition- Polynomial Multiplication- Sorting algorithms- Searching algorithms.
CHARACTERS AND STRING HANDLING: Finding the length of string-reversal of string- concatenation of two strings-checking whether it is a palindrome or not converting upper case alphabets to lowercase and vice versa in a string.
POINTERS, STRUCTURES AND UNIONS: Finding the sum of all elements of an array using pointers- Swapping the contents of two variables using pointers- Finding the first and second rank holders and printing their names and roll numbers, in a class of 60 students using structures- Defining a complex number as structure and wring a program to illustrate the operations on complex numbers-Some examples of Unions.
FILES & OTHER TOPICS: Copying and concatenation of files- Bit wise operations - Command line parameters- C preprocessor directives- Macros.
Reference books:
[1] Digital Design, 3rd Edition, M.Morris Mano, Pearson Education, Inc., 2002 [2] Ashok N. Kamthane, Programming with ANSI and Turbo C, Pearson Education, New Delhi.
For more details, visit http://www.nannayauniversity.info/courses.html
|
No responses found. Be the first to respond and make money from revenue sharing program.
|