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

List of C Programs

The document contains descriptions of programming exercises divided into 5 modules. Module 1 covers basic C programs to calculate areas, perform arithmetic, and swap values. Module 2 includes programs using conditional and nested conditional statements. Module 3 focuses on arrays and searching/sorting algorithms. Module 4 introduces functions and passing data between them. Module 5 covers strings, character operations, and using structures to organize student/employee data.

Uploaded by

harshagowda0464
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views

List of C Programs

The document contains descriptions of programming exercises divided into 5 modules. Module 1 covers basic C programs to calculate areas, perform arithmetic, and swap values. Module 2 includes programs using conditional and nested conditional statements. Module 3 focuses on arrays and searching/sorting algorithms. Module 4 introduces functions and passing data between them. Module 5 covers strings, character operations, and using structures to organize student/employee data.

Uploaded by

harshagowda0464
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

MODULE -1

1) C program to find the area of a square


2) C program to find the area of a circle
3) C program to find the area of a triangle
4) C program to compute Simple Interest
5) C program to add 2 unknown numbers
6) C program to add 2 known numbers
7) C program to compute the total energy e=mgh+1/2mv2
8) C program to convert Kilometer to meter and centimeter
9) C program to perform arithmetic operations
10) Swapping of 2 numbers using temp and without using temp

MODULE – 2
1) Program to determine whether a person is eligible to vote using if.
2) Program to determine whether a person is eligible to vote using if-else statement.
3) Program to find the largest of three numbers using Nested if else statement.
4) Program to print the grade obtained by the student based on the given table using else-
if ladder.

5) C Program to check whether a given alphabet is vowel or consonant using switch


statement.
6) C Program to find the largest of 2 numbers.
7) C Program to check whether a given number is Odd or Even.
8) C Program to check whether a given student is pass/fail.
9) C Program to print the name of the day using switch statement.
10) Program to find the sum of n natural numbers using while loop.
11) Program to find the sum of n natural numbers using do while.
12) Program to print sum of N Natural Numbers using for.
13) C Program to print N natural numbers using while loop.
14) C Program to print N natural numbers using do-while loop.
15) C Program to print N natural numbers using for loop.
16) Program to simulate simple calculator using switch statement.
17) Program to count the number of lines, words and characters in a given text.
18) Write a C program to calculate roots of a Quadratic Equation using if else if
19) Program using for loop to calculate factorial of a number
20) Program to print the following pattern
*
**
* **
* ** *
* * * **

MODULE -3
1) C program to read and print 1D Array
2) C program to find transpose of a matrix
3) C program to add 2 matrices
4) C Program to multiply 2 matrices
5) Assigning the values: Program to print 2,4,6,8-----20 using arrays.
6) Program to print 2,4,6,8-----20 using arrays by read the N value ( assigning the
values)
7) Initialize the array value
8) Sum of N numbers using 1D array.
9) Sum and average using arrays
10) Sum of numbers using arrays
11) Read and display of array elements
12) Linear Search Program
13) Binary Search Program
14) Bubble Sort Program
15) Selection Sort Program
16) Read and display of 2D Matrix
17) C Program to copy the contents of an 1D-array to another 1D-array using for loop.
18) C Program to print the contents of an 1D-array in reverse order.

MODULE - 4
1) Sum of 2 numbers using functions
2) Greatest of 2 Nos using functions
3) Sum of N Numbers using functions
4) Function with no arguments and No return values – addition of 2 Nos
5) Function with No arguments and with return values – addition of 2 Nos
6) Function with arguments and with no return values – addition of 2 Nos
7) Function with arguments and with return values – addition of 2 Nos
8) Write a program to swap 2 numbers using CALL BY VALUE
9) Write a program to swap 2 numbers using CALL BY REFERENCE
10) Write a program to find the factorial of a number using functions
11) C program using pointers to compute the sum of given array elements
{10,20,30,40,50}

12) C program using pointers to compute the sum and mean of all elements stored in
an array of n real numbers

13) C Program to add two numbers using pointers

14) C Program to find area of triangle using pointers


15) Design a C program to calculate the sum of array elements using pointers.
16) C Program to check the given alphabet is vowel or consonant using pointers
17) Fibonacci Series using for loop
18) Fibonacci Series using recursion
19) Print the value and address of the integer - Pointers.
20) Array initialization and display the same using pointers.
21) Read the input through keyboard and display of Array using pointers.

MODULE – 5

1) C program to print String Length with and without Built-in function


2) C program to concatenate two String’s with and without Built-in function
3) Write functions to implement string operations such as compare, concatenate,
string length. Convince the parameter passing techniques.
4) Program to reverse the given string with and without using built-in function.
5) C program to Read and display a string
6) Find the ascii value of a character.
7) String Operations – a) UPPER to lower b) lower to UPPER
8) Compare two Strings with and without Built – in function.
9) String copy with and without built in function.
10) C Program to check whether the given string is palindrome or not.
11) Program to read and print the student information such as reg.no, name & marks
using structures.
12) Program to read and print the employee information such as employee id, name &
salary using structures.
13) Program to read and print three students’ information such as reg.no, name &
marks using structure datatype.

You might also like