Page 1 :
2.5 CONCEPT OF PROGRAMMING USING C, , RATIONALE, , Computers play a vital role in present day life, more so, in the professional life of, technician engineers. People, who are working in the field of computer industry, use, computers in solving problems more easily and effectively. In order to enable the students, use the computers effectively in problem solving, this course offers the modem, programming language C along with exposition to various applications of computers. The, knowledge of C language will be reinforced by the practical exercises., , LEARNING OUTCOMES, After undergoing the subject, the students will be able to:, , ‘¢ Identify the problem and formulate an algorithm for it, ‘Identify various control structures and implement them., , ‘+ Identify various types of variables., , ‘Use pointer in an array and structure,, , ‘* Use structures and union for handling data., , ‘+ Explain the concepts of C programming language, , ‘+ Explain and implement the language constructs concepts, , © Install C em and debug the programme, , ‘+ Explain and execute member functions of C in the programme, , , , , , ‘oftware on the sys, , , , ‘© Describe and implement array concept in C programme, ‘+ Describe and execute pointers, ‘Expose File System using File Handling, , , , DETAILED CONTENTS, 1, Algorithm and Programming Development (08 Periods), , Steps in development of a program, algorithm development, concept of flowcharts,, programming and use of programming, various techniques of programming,, Structured Programming, Preprocessors, Debugging, Compiling, , 2. Program Structure (08 Periods), , Structure of C program, Writing and executing the first C program, Translator:, Assembler, Interpreter, Compiler, 1/0 statement, assign statement, Keywords,, constants, variables and data types, storage classes, operators and expressions,, Unformatted and Formatted 10S, Data Type Casting, , 3. Control Structures (10 Periods), , Introduction, decision making with IF — statement, IF — Else and Nested IF, Ladder, if-else, Loop: While, do-while, for, Break, Continue, goto and switch statements, , 4, Funetions (10 Periods), , Introduction to functions, Global and Local Variables, Function Declaration,, Function Call and Retum, Types of Functions, Standard fimetions, Parameters and, Parameter Passing, Call - by value/reference, recursive function, function with array,, function with string, , , , 5. Arrays and Strings (10 Periods), Introduction to Arrays, Array Declaration, Length of array, Manipulating, arrayelements, Single and Multidimensional Array, Arrays of characters, Passing an, array to function, Introduction of Strings, String declaration and definition, String, Related function ic. strlen, strepy, stremp, , 6. Pointers (08 Periods), , Introduction to pointers, Static and dynamic memory allocation, Address operator and, pointers, Declaring and initializing pointers, Single pointer, Pointers to an array, , 7. Structures and Unions (08 Periods), , Declaration of structures, Accessing structure members, Structure Initialization, array, of structure variable, Pointer to a structures, Union, Declaration of Union, , 8, File Handling (08 Periods), , Basics of File Handling, opening and closing of File, reading and writing character, from a file