Programming and Problem Solving Skills Using C Language
Programming and Problem Solving Skills Using C Language
Note: All the practical with their output must be written in sessional files and have to
be submitted by 31/01/2022.
S.No. Name of Practical
1 Write a Program to demonstrate working of all Unary operators.
2 Write a Program to demonstrate working of all binary operators.
3 Write a Program to demonstrate working of all bitwise operators.
4 Write a Program to demonstrate working of ternary operators.
5 Write a program to find whether a given year is a leap year or not.
6 Write a program using SWITCH-CASE to perform a simple calculation.
7 Write a program to display the n terms of natural number and their sum
8 Write a program to display the n terms of odd natural number and their sum
9 Write a program to display the pattern like right angle triangle with a number.
10 Write a program to make such a pattern like a pyramid with numbers increased by 1
11 Write a program to calculate the factorial of a given number using loops
12 Write a program to check whether the given number is perfect or not.
13 Write a program to determine whether a given number is prime or not
14 Write a program to find HCF (Highest Common Factor) of two numbers.
15 Write a program to find the square of any number using the function.
16 Write a program to swap two numbers using functions (call by value).
17 Write a program to calculate the factorial of a given number using recursive functions.
18 Write a program to read n number of values in an array and display it in reverse order.
19 Write a program to insert New value in the array (unsorted list).
20 Write a program to copy the elements of one array into another array
21 Write a program to count a total number of duplicate elements in an array.
22 Write a program for addition of two Matrices of same size.
23 Write a program to find transpose of a given matrix
24 Write a program to create, declare and initialize structure.
25 Write a program to demonstrate example of structure of array.
26 Write a program to declare, initialize a union, example of union.
27 Write a program to find the size of the union and the structure
28 Write a program to show the basic declaration of pointer.
Write a program to demonstrate the use of & (address of) and *(value at address)
29
operator.
30 Write a program to swap elements using call by reference