0% found this document useful (0 votes)
7 views1 page

C Lab Questions

The document outlines a series of programming tasks in C, divided into two parts. Part A includes tasks such as calculating the area and circumference of a circle, finding the largest of three numbers, and generating prime numbers. Part B focuses on string manipulation, pointers, and data structures, including tasks like finding the length of a string and demonstrating the difference between structures and unions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

C Lab Questions

The document outlines a series of programming tasks in C, divided into two parts. Part A includes tasks such as calculating the area and circumference of a circle, finding the largest of three numbers, and generating prime numbers. Part B focuses on string manipulation, pointers, and data structures, including tasks like finding the length of a string and demonstrating the difference between structures and unions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PART A

1. Write a C Program to read radius of a circle and to find area and circumference

2. Write a C Program to read three numbers and find the biggest of three

3. Write a C Program to demonstrate library functions in math.h

4. Write a C Program to check for prime

5. Write a C program to generate n primes.

6. Write a C Program to read a number and find the sum of the digits.

7. Write a C Program to read a number and find the reverse the number

8. Write a C Program to read numbers from keyboard continuously till the user presses 999 and to find
the sum of only positive numbers

9. Write a C Program to read percentage of marks and to display appropriate message (Demonstration
of else-if ladder)

10. Write a C program to read marks scored by n students and find the average of marks
(Demonstration of single dimensional array)

11. Program to perform addition of Matrices

PART B

1. Write a C Program to find the length of a string without using built in function

2. Write a C Program to demonstrate string functions.

3. Write a C Program to demonstrate pointers in C

4. Write a C Program to check a number for prime by defining isprime( ) function

5. Write a C Program to read, display and to find the trace of a square matrix

6. Write a C Program to read a string and to find the number of alphabets, digits, vowels, consonants,
spaces and special characters.

7. Write a C Program to Swap Two Numbers using Pointers

8. Write a C Program to demonstrate student structure to read & display records of n students.

9. Write a C Program to demonstrate the difference between structure & union.

You might also like