C simple programs

Posted by admin at July 2, 2021

C is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, and so on. C programming is an excellent language to learn to program for beginners.

Bellow is some c general problems try to solve them.

  1. C program to print Hello World.
  2. C program to check whether the given number is positive or negative
  3. Reverse an input number using recursion
  4. Program to find greatest of three numbers
  5. C Program to print Fibonacci series in a given range
  6. C Program to find factorial of a given number
  7. Find Prime numbers in a given range
  8. C Program to check if given number is Armstrong or not
  9. C Program to check if given number is palindrome or not
  10. C program to display palindrome numbers in a given range
  11. C Program to check if number is odd or even
  12. C Program to find out the ASCII value of a character
  13. C Program to find the size of int, float, double and char
  14. C Program to check whether an alphabet is vowel or consonant
  15. C Program to check leap year
  16. C Program to find sum of first n natural numbers

String Programs

  1. Program to convert string from upper case to lower case
  2. Program to convert string from lower case to upper case
  3. Sort a set of strings in ascending alphabetical order
  4. Find length of a string without using strlen()
  5. String concatenation without using strcat
  6. Reverse a String using recursion

Array Programs

  1. Program to sort array in ascending order
  2. Find largest element of given array
  3. C program to find sum of array elements
  4. C Program to find number of elements in an array

Sorting programs

  1. Bubble sort program in C
  2. Insertion sort program in C
  3. Selection sort program in C
  4. Quicksort program in C

C Pointer programs

  1. C program to find the largest of three numbers using Pointers
  2. C program to count vowels and consonants in a String using pointer
  3. C program to print String using Pointer
  4. C program to swap two numbers using pointers
  5. C program to create initialize and access a pointer variable

Programs on calculation

  1. Find the value of nPr for given value of n & r
  2. Find the value of nCr for given value of n & r
  3. C Program to multiply two floating numbers
  4. C Program to find out Quotient and Remainder
  5. C Program to find average of two numbers

Number system conversion programs

  1. Binary to decimal conversion
  2. C Program to convert Decimal to Binary
  3. C Program to convert Decimal to Octal
  4. C Program to convert Octal to Decimal
  5. C Program to convert Binary to Octal
  6. C Program to convert Octal to Binary

Programs to find out areas of Geometric figures

  1. C program to find area and circumference of circle
  2. C program to find area of equilateral triangle

Comments

Write a Reply or Comment