0% found this document useful (0 votes)
3 views

lab_questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

lab_questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

● Read 3 integer values and find the largest among them.

● Read a Natural Number and check whether the number is prime


or not.
● Read a Natural Number and check whether the number is
Armstrong or not.
1. Read n integers, store them in an array and find their sum and
average. Display the numbers, sum and average.
2. Read n integers, store them in an array and search for an element
in the array using Linear Search algorithm.
3. Read n integers, store them in an array and sort the elements in
the array using Bubble Sort algorithm.
1. Read a string (word), store it in an array and check whether it is a
palindrome word or not.
2. Read two strings (each one ending with a $ symbol), store them in
arrays and concatenate them without using library functions.
3. Read a string (ending with a $ symbol), store it in an array and
count the number of vowels, consonants and spaces in it.
1. Read two input each representing the distances between two
points in the Euclidean space, store these in structure variables
and add the two distance values.
2. Using structure, read and print data of n employees (Name,
Employee Id and Salary)
3. Declare a union containing 5 string variables (Name, House Name,
City Name, State and Pin code) each with a length of C_SIZE (user
defined constant). Then, read and display the address of a person
using a variable of the union.
1. Find the factorial of a given Natural Number N using recursive
and non recursive functions.
2. Read a string (word), store it in an array and obtain its reverse
by using a user defined function.

3. Write a menu driven program for performing matrix addition,


multiplication and finding the transpose. Use functions to (i) read
a matrix, (ii) find the sum of two matrices, (iii) find the product of
two matrices, (i) find the transpose of a matrix and (v) display a
matrix.

You might also like