Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

U20CSEJ01 Programming for Problem Solving L T P C

Total Contact Hours - 105 3 0 4 5


Prerequisite – Mathematics knowledge, Analytical and Logical skills.
Course Offered by – Dept. of Computer Science & Engineering
OBJECTIVES
The Course should enable the students to
 Contemplate and construct algorithm, flowchart and pseudocode to do programs.
 Employ operators and expressions to solve engineering problems.
 Handle data in single and multi-dimensional arrays.
 Develop routines that are user defined and can be used in various applications.
 Build storage constructs using structure and unions.
 Build and deploy files to store and retrieve information.
 Construct the programming steps and procedures to solve various Engineering applications.
UNIT I -INTRODUCTION 12
Evolution of programming & languages – problem solving through programming – Creating algorithms –
Drawing flowcharts- Writing pseudocode- Evolution of C language, its usage history– Input and output
functions: printf and scanf – Variables and identifiers – Expressions- single line and multiline comments –
Constants, Keywords – Values, Names, Scope, Binding, Storage classes– Numeric data types: integer-
Numeric Data types: floating point – Non-Numeric data types: char and string - Increment and decrement
operator – comma, Arrow and assignment operator – Bitwise and Size of operator.

UNIT II OPERATORS & LOOPING STATEMENTS 12


Relational and logical operators-condition operators- operator precedence – expressions with pre/post
increment operator – expressions with conditional and assignment operators- if statement in expression –l-
value and r-value in expression– control statements – if else, else if and nested if – switch case – iterations,
conditional and unconditional branches – for loop, while loop, do while loop, goto, break, continue – array
basics and types – array initialization and declaration -initialization of one dimensional array – accessing
and indexing one dimensional array – Array operations – One dimensional array operations.

UNIT III ARRAY & FUNCTIONS 12


Initializing and accessing 2D array-initializing multidimensional array-array programs-2D array
contiguous memory- array advantages and limitations-array construction for real time applications -
common programming errors- string basics - string declaration and initialization- string functions-gets(),
puts()- getchar() - putchar()- printf()- string functions –atoi, strlen, strcat, strcmp, - string functions :sprint,
sscanf, strrev, strcpy, strtok,- arithmetic characters on strings – functions declaration and definition – types
: call by value, call by reference - function with and without arguments and no return values – passing
arrays to functions with return types- recursion and recursion functions.

UNIT IV FUNCTIONS & POINTERS 12


Passing array element to function – formal and actual parameters – advantages of using functions –
processor directives and #define directives – nested preprocessor macro – advantages of using functions –
pointers and address operator – size of pointer variable and pointer operator – pointer declaration and
dereferencing pointer – void pointer and size of void pointers – arithmetic operations – incrementing
pointers– constant pointers – pointers to array elements and strings – function pointers – array of function
pointers – accessing array of function pointers – null pointers.

UNIT V STRUCTURE & UNION 12


Initializing Structure, Declaring structure variable – structure using typedef, Accessing members– Nested
structure – Accessing elements in a structured array – Array of structure – Accessing elements in structure
array – Passing Array of structure to function – Array of pointers to structures – Bit manipulation to
structure and pointer to structure – Union Basic and declaration – Accessing union members- Pointers to
Union – Dynamic memory allocation, mallaoc, realloc, free – Allocation Dynamic array –
Multidimensional array using dynamic memory allocation – file:opening, defining, closing, File modes,
File types – writing contents into a file – Reading file contents – Appending an existing file – File
permissions and rights – changing permissions and rights.
Experiments: 45
1. Algorithm, Flow Chart, Psuedocode
2. Input and Output Statements
3. Data Types
4. Operators and Expressions
5. Control Statements
6. Arrays-one dimensional
7. Arrays- Multi dimensional
8. Strings
9. Functions
10. Pointers
11. Structures & Unions
12. File Handling

TEXT BOOKS
1.Let us C, Yashavant Kanetkar, 17th edition, 2020.
2. E. Balaguruswamy, Programming in ANSI C, Tata McGraw-Hill,8th edition,2019.

REFERENCE BOOKS
 1.E. Balaguruswamy, Programming for problem solving, Tata McGraw-Hill,2018.
Other Resources (Online Resources or others):
 https://www.programiz.com/c-programming
 https://www.tutorialspoint.com/cprogramming/index.htm
 https://www.w3schools.in/c-tutorial/

Explain the basic tools to write programs like basic data types, variables and
CO1 operators in C.

Understand programs using loop constructs and arrays to store and retrieve
CO2
data.
Develop the programs using two dimensional arrays constructs, functions,
CO3
string operations and recursive functions.
CO4 Interpret the use of pointers in the programs.
CO5 Understand programs using structures, unions and files operations.
CO6 Apply C programming concepts to solve complex problems.
Mapping / Alignment of Cos with PO & PSO
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3
3 2 1
CO1
3 1 1 1 2 1
CO2
2 1 1 1 2 1
CO3
2 2 2 2 2 2
CO4
2 2 2 2 2 2
CO5
2 2 2 2 2 2
CO6
Mapping of Course Outcomes with PROGRAMME OUTCOMES(POs)
(3/2/1 indicates strength of correlation) 3-High, 2-Medium, 1-Low

You might also like