CSE 101 - Fundamentals of Computing and Programming in C
CSE 101 - Fundamentals of Computing and Programming in C
Course Name
Code Category L T P C
CSE 101/ Fundamentals of Computing and
ES 3 0 1 4
CSC 101 Programming in C
UNIT II
C PROGRAMMING BASICS
Structure of a C program, identifiers Basic data types and sizes. Constants, Variables
Arithmetic, relational and logical operators, increment and decrement operator’s Conditional
operator, assignment operator, expressions Type conversions, Conditional Expressions
Precedence and order of evaluation, Sample Programs.
SELECTION & DECISION MAKING: if-else, null else, nested if, examples, multi-way
selection: switch, else-if, examples.
ITERATION: Loops - while, do-while and for, break, continue, initialization and updating,
event and counter controlled loops and examples.
FUNCTIONS: User defined functions, standard library functions, Passing 1-D arrays, 2-D
arrays to functions. Recursive functions - Recursive solutions for fibonacci series, towers of
hanoi. C Pre-processor and header files.
REFERENCES
1. Problem Solving and Program Design in C, Hanly, Koffman, 7th edition, PEARSON
2013.
2. Programming in C, Pradip Dey and Manas Ghosh, Second Edition, OXFORD Higher
Education, 2011.
3. Programming in C, A practical approach Ajay Mittal PEARSON.
4. Programming in C, B. L. Juneja, Anith Seth, First Edition, Cengage Learning.
SEMESTER-I
2. Week-2: Loops
a. Find the sum of individual digits of a positive integer and find the reverse of
the given number.
b. Generate the first n terms of Fibonacci sequence.
c. Generate all the prime numbers between 1 and n, where n is a value supplied
by the user.
d. Print the multiplication table of a given number n up to a given value, where n
is entered by the user.
3. Week-3: Loops
a. Decimal number to binary conversion.
b. Check whether a given number is the Armstrong number or not.
c. Triangle star patterns
I II III
4. Week-4: Arrays
a. Interchange the largest and smallest numbers in the array.
b. Searching an element in an array
c. Sorting array elements.
5. Week-5: Matrix
a. Transpose of a matrix.
b. Addition and multiplication of 2 matrices.
6. Week-6: Functions
a. (nCr) and (nPr) of the given numbers
b. 1+x+x2\2+x3\3!+x4\4!+………..Xn\n!
9. Week-9: Structures
a. Reading a complex number
b. Writing a complex number.
c. Addition of two complex numbers
d. Multiplication of two complex numbers