Thursday, February 17, 2025

A-Z C Programs : Collection Of Simple C Programs

[ Links Will Be Posted Soon ]

General
L.C.M and H.C.F.
1. Write a c program to find out L.C.M. of two numbers.
2. Write a c program to find out H.C.F. of two numbers.
3. Write a c program to find out G.C.D. of two numbers.
Swapping
1. Write a c program to swap two numbers.
2. Write a c program to swap two numbers without using third variable.
3. Write a c program for swapping of two arrays.
4. Write a c program for swapping of two string.
Conversion

  1. Write a c program to convert decimal number to hexadecimal number.
  2. Write a c program to convert decimal number to octal number.
  3. Write a c program to convert octal number to decimal number.
  4. Write a c program to convert octal number to hexadecimal number.
  5. Write a c program to convert hexadecimal number to decimal number.
  6. Write a c program to convert hexadecimal number to octal number.
  7. Write a c program to convert binary number to decimal number.
  8. Write a c program to convert binary number to hexadecimal number.
  9. Write a c program to convert binary number to octal number.
  10. Write a c program to convert decimal number to binary number.
  11. Write a c program to convert hexadecimal number to binary number.
  12. Write a c program to convert octal number to binary number.
  13. Write a c program to convert farehnite to centigrade.
  14. Write a c program to convert centigrade to farehnite.
String
With Using Library Functions :
  1. Find the Length of the String
  2. Concat Two Strings
  3. Copy One String Into Other
  4. Convert given String into Uppercase String
  5. Convert given String into Lowercase String
  6. Count Total Number of Uppercase,Lowercase.
  7. Check Whether Given Character is Capital or Not
  8. Check Whether Given Character is Lowercase or Not
  9. Check Whether Entered Number is Palindrome or Not
  10. Convert String into Integer
  11. Convert String to Float
Without Using Library Functions :
  1. Length of the String
  2. Concat Two Strings
  3. Reverse String
  4. Compare Two Strings 
  5. Copy One String Into Other
  6. Check Whether String is substring or not
Matrix
1. Write a c program for addition of two matrices.
2. Write a c program for subtraction of two matrices
3. Write a c program for multiplication of two matrices.
4. Write a c program to find out sum of diagonal element of a matrix.
5. Write a c program to find out transport of a matrix.
File
1. Write a c program to open a file and write some text and close its.
2. Write a c program to delete a file.
3. Write a c program to copy a file from one location to other location.
4. Write a c program to copy a data of file to other file.
5. Write a c program which display source code as a output.
6. Write a c program which writes string in the file.
7. Write a c program which reads string from file.
8. Write a c program which writes array in the file.
9. Write a c program which concatenate two file and write it third file.
10. Write a c program to find out size of any file.
11. Write a c program to know type of file.
12. Write a c program to know permission of any file.
13. Write a c program to know last date of modification of any file.
14. Write a c program to find size and drive of any file.
Complex number
1. Write a c program for addition and subtraction of two complex numbers.
2. Write a c program for multiplication of two complex numbers.
3. Write a c program for division two complex numbers.
Series
1. Write a c program to find out the sum of series 1 + 2 + …. + n.
2. Write a c program to find out the sum of series 1^2 + 2^2 + …. + n^2.
3. Write a c program to find out the sum of series 1^3 + 2^3 + …. + n^3.
4. Write a c program to find out the sum of given A.P.
5. Write a c program to find out the sum of given G.P.
6. Write a c program to find out the sum of given H.P.
7. Write a c program to find out the sum of series 1 + 2 + 4 + 8 … to infinity.
Array
1. Write a c program to find out largest element of an array.
2. Write a c program to find out second largest element of an unsorted array.
3. Write a c program to find out second smallest element of an unsorted array.
4. Write a c program which deletes the duplicate element of an array.
5. Write a c program for delete an element at desired position in an array.
6. Write a c program for insert an element at desired position in an array.
Sorting
1. Write a c program for bubble sort.
2. Write a c program for insertion sort.
3. Write a c program for selection sort.
4. Write a c program for quick sort.
5. Write a c program for heap sort.
6. Write a c program for merge sort.
7. Write a c program for shell sort.
Recursion
1. Write a c program to find factorial of a number using recursion.
2. Write a c program to find GCD of a two numbers using recursion.
3. Write a c program to find out sum digits of a number using recursion.
4. Write a c program to find power of a number using function recursion.
5. Write a c program to reverse any number using recursion.
Size of data type
1. Write a c program to find the size of int without using sizeof operator.
2. Write a c program to find the size of double without using sizeof operator.
3. Write a c program to find the size of structure without using sizeof operator.
4. Write a c program to find the size of union without using sizeof operator.
Using pointer
1. Write a c program for concatenation two string using pointer.
2. Add Two Numbers Using Pointer
Searching
1. Write a c program for linear search.
2. Write a c program for binary search.
3. Write a c program for binary search using recursion.
Area and volume
1. Write a c program to find the area of circle.
2. Write a c program to find the area of any triangle.
3. Write a c program to find the area of rectangle.
4. Write a c program to find the area of equilateral triangle.
5. Write a c program to find the area of trapezium.
6. Write a c program to find the area of right angle triangle.
7. Write a c program to find the volume and surface area of cube.
8. Write a c program to find the surface area and volume of a cone.
9. Write a c program to find the perimeter of a circle, rectangle and triangle.
C program with very large numbers
1. Write a c program to find factorial of 100 or very large numbers
2. Write a c program to multiply the two very large number (larger the long int)
3. Write a c program for division of large number (larger than long int)

0 comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

Copyright Notice | Link Exchange | Privacy Policy |Contact Us

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls