PPS
SWN | Programming for Problem Solving
Indus University
CSE Section
Programming for Problem Solving
unit-1
Introduction to Programming
What is programming? Problem solving methods with Examples-Algorithm and Flowchart, Types of Programming languages, Characteristics of higher level language, Some Programming languages
Introduction to ‘C’
Introduction, Importance of C, Sample C programs, Basic structure of C programs, Programming style, executing a C program. Introduction, Character Set, C tokens, Keywords and Identifiers, Constants, Variables, Data types, Declaration of Variables, Defining symbolic constants
Operators and Expression
Introduction, Arithmetic of Operators, Relational Operators, Logical Operators, Assignment Operators, Increment and Decrement Operators, Conditional Operators, Bitwise Operators, Special Operators, Arithmetic Expressions, Evaluation of expressions, Precedence of arithmetic operators, Type conversions in expressions, Mathematical function.
unit-2
Decision Making Statements
Introduction, Decision making with IF statement, Simple IF statement, the IF ELSE statement, Nesting of IF ... ELSE statements, The ELSE IF ladder, The switch statement, the turnery (? :) Operator, the GOTO statement.
Looping
WHILE statement, the DO statement, The FOR statement, Jumps in loops Break and continue.
Array & Handling of Character strings
Introduction, One-dimensional arrays, Two-dimensional arrays, Initialization of two- dimensional arrays, Concept of Multidimensional arrays
unit-3
Handling of Character String
Introduction, Declaring and initializing string variables, reading string from terminal, writing string to screen, Arithmetic operations on characters, Putting string together, String Operations: String Copy, String Compare, String Concatenation and String Length, String Handling functions, Table of strings.
User-Defined Functions
Introduction, need for user-defined functions, return values and their types, calling a function, category of functions, no arguments and no return values, Arguments with return values, Handling of non-integer functions, Nesting of functions, Recursion, Functions with arrays, The scope and Lifetime of variables in functions.
unit-4
Pointers
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 and character strings, Pointers and Functions, Pointers and Structures.
Structures and Unions
Introduction, Structure definition, Giving values to members, Structure initialization, Comparison of structures, Arrays of structures, Arrays within structures, Structures within Structures, Structures and functions, Unions.
File Handling
Introduction, Defining and opening File, Closing File, Input/output operations on Files.