Subjec Subject Title Credi Lectur Tutoria Practica Type
t Code t e l l
Core - Practical - I – 4 5 Practica
Programming in C l
Lab
Course Outcome:
CO1 : Understand basic Structure of the C-PROGRAMMING, declaration and
usage of variables
CO2 : Understand C programs using operators
CO3 : Exercise conditional and iterative statements to Write C programs
CO4 : Understand for C programs using Pointers to access arrays, strings and
functions
CO5 : Understand C programs using pointers and allocate memory using dynamic
memory management functions.
1. Write a program for find the max and min from the three numbers.
2. Write the program for the simple, compound interest.
3. Write program for students marks grading.
4. Write a C program, which takes two integer operands and one operator from the
user, performs the operation and then prints the result. (Consider the operators +,-,*, /,
% and use Switch Statement)
5. Write a C program to find the sum of individual digits of a positive integer and test
given number is palindrome.
6. Write a C program to generate all the prime numbers between 1 and n, where n is a
value supplied by the user.
7. Write a C program to find the roots of a Quadratic equation.
8. Write a C program that uses functions to perform the following:
a) Addition of Two Matrices b) Subtraction of Two Matrices.
9. Write a C program to determine if the given string is a palindrome or not using
pointer.
10. Write a C program to count the lines, words and characters in a given text.
11. Write a C program which copies one file to another.
12. Write a C program to reverse the first n characters in a file. (Note: The file name
and n are specified on the command line.)