PROGRAMMING FOR PROBLEM SOLVING

18CS0501

UNIT I
OVERVIEW OF COMPUTERS AND C-PROGRAMMING: Description of Computer Hardware &Software.
INTRODUCTION TO C: overview of C, executing a ̳c‘ program, c-character set, constants,variables, data types, declaration of variables, assigning values to variables, managing input & output operations, operators and expressions, basics of algorithm and flow chart

UNIT II
DECISION&LOOPCONTROL STATEMENTS: Introduction, If Statement, If-else Statement, Nested- If-else Statement, Else if Ladder, Switch case – break – continue – go to Statement, for loop, nested for loop, while loop, do-while, do-while statement with while loop

UNIT III

ARRAYS: Introduction, one-dimensional (1D)-Arrays, declaration and initialization of one-dimensional (1D)-Arrays, Two- dimensional (2D)-Arrays, initialization of Two-dimensional (2D)-Arrays, Multi-dimensional Arrays

FUNCTIONS: Introduction, need for user-defined functions, a multi-function program,elements of user-defined functions, definition of functions, return values and types, category of functions, recursion, scope and life time of variables, preprocessor commands: #define,#include, multi file programs

UNIT IV
POINTERS: Introduction, understanding pointers, accessing address of a variable, declaring and initialization of pointer variables, accessing variable through pointers, chain of pointers, pointer expressions, pointer increment and scale factor, pointers and arrays, passing arrays to
functions, array of pointers, pointers as function arguments, functions returning pointers.

STRINGS: Introduction, declaring and initializing string variables, reading and writing strings, arithmetic operations on characters, putting strings together, comparison of two strings,string handling functions, table of strings (array of strings)

UNIT V
STRUCTURES: Introduction, defining a structure, declaring structure variables, accessing structure members, structure initialization, copying and comparing structure variables, operations on individual members, arrays of structures, arrays within structures, structures within structures, structures and functions, unions, typedef, enemy

File Management in C: Introduction, Types of Files, Defining and Opening a File, Closing a File, Input / Output Operations on Files, Error handling during IO Operations, Random access to files, Command line arguments.

Study Material's for Subject

© All rights reserved by creativestellars-2018

Designed by team- creativestellars