(Arrays)
1. Write a C program to find the number of repeated elements in an array. C Program to Delete
duplicate elements from an array.
2. Write a C program to count and display positive, negative, odd and even numbers in an array.
(2-D arrays)
1. Write program to perform following operations on a two dimensional matrix
(i) Addition
(ii) Subtraction
(iii) Multiplication
(iv) Transpose
(v) inverse
(vi) print lower diagonal of a matrix.
(vii) Check if the matrix is a magic square or not
2. WAP to print the spiral matrix as shown below.This size of the matrix should be user defined
i.e if the user enters size as 4, numbers 1-16 should be printed in spiral format.
1 2 3 4
12 13 14 5
11 16 15 6
10 9 8 7
(Functions)
1. Write a menu driven program using functions to implement a calculator. Following functions
should be implemented
(i) addition (ii) subtraction (iii) Multiplication (iv) Division (v)power (vi) factorial(vii)square
root
2. Write a function to obtain the prime factors of a number. Eg- prime factors of 36 are 2, 2,3 and
3. Prime factors of 121 are 11 and 11.
3. Write a C program to find SUM and AVERAGE of two integer Numbers using User Define
Functions
4. Write a program to multiply two numbers using recursive function.
5. Write a C program to print the transpose of a given matrix using function.
(pointers and strings)
1. Write a C Program to create, initialize, assign and access a pointer variable.
2. Write a C Program to demonstrate example of double pointer (pointer to pointer).
3. Write a program to swap two numbers by using call by reference.
4. Write a C program to find Sum of all Array Elements by passing array as an argument using User
Define Functions.
5. Write a C Program to demonstrate example of array of pointers.