100% found this document useful (1 vote)
3K views

List of C Basic Programs

The document lists over 50 C programming examples covering basic, intermediate, and advanced concepts such as: Hello World, arithmetic operations, conditional statements, loops, functions, arrays, strings, pointers, structures, file handling, recursion, sorting, and dynamic memory allocation. It also includes programs to perform operations on numbers, strings, arrays, matrices, geometric shapes, and conversions between number systems.

Uploaded by

saidurga
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
3K views

List of C Basic Programs

The document lists over 50 C programming examples covering basic, intermediate, and advanced concepts such as: Hello World, arithmetic operations, conditional statements, loops, functions, arrays, strings, pointers, structures, file handling, recursion, sorting, and dynamic memory allocation. It also includes programs to perform operations on numbers, strings, arrays, matrices, geometric shapes, and conversions between number systems.

Uploaded by

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

List of C Basic programs

C "Hello, World!" Program


C Program to Print an Integer (Entered by the User)
C Program to Add Two Integers
C Program to Multiply two Floating Point Numbers
C Program to Find ASCII Value of a Character
C Program to Compute Quotient and Remainder
C Program to Find the Size of int, float, double and char
C Program to Demonstrate the Working of Keyword long
C Program to Swap Two Numbers
C Program to Check Whether a Number is Even or Odd
C Program to Check Whether a Character is Vowel or Consonant
C Program to Find the Largest Number Among Three Numbers
C Program to Find all Roots of a Quadratic Equation
C Program to Check Leap Year
C Program to Check Whether a Number is Positive or Negative
C Program to Check Whether a Character is an Alphabet or not
C Program to Calculate the Sum of Natural Numbers
C Program to Find Factorial of a Number
C Program to Generate Multiplication Table
C Program to Display Fibonacci Sequence
C Program to Find GCD of two Numbers
C Program to Find LCM of two Numbers
C Program to Display Characters from A to Z Using Loop
C Program to Count Number of Digits in an Integer
C Program to Reverse a Number
C Program to Calculate the Power of a Number
C Program to Check Whether a Number is Palindrome or Not
C Program to Check Whether a Number is Prime or Not
C Program to Display Prime Numbers Between Two Intervals
C Program to Check Armstrong Number
C Program to Display Armstrong Number Between Two Intervals
C Program to Display Factors of a Number
C Programming Code To Create Pyramid and Structure
C Program to Make a Simple Calculator Using switch...case
C Program to Display Prime Numbers Between Intervals Using Function
C Program to Check Prime or Armstrong Number Using User-defined Function
C Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers
C Program to Find the Sum of Natural Numbers using Recursion
C Program to Find Factorial of a Number Using Recursion
C Program to Find G.C.D Using Recursion
C Program to Convert Binary Number to Decimal and vice-versa
C Program to Convert Octal Number to Decimal and vice-versa
C Program to Convert Binary Number to Octal and vice-versa
C program to Reverse a Sentence Using Recursion
C program to calculate the power using recursion
C Program to Calculate Average Using Arrays
C Program to Find Largest Element of an Array
C Program to Calculate Standard Deviation
C Program to Add Two Matrix Using Multi-dimensional Arrays
C Program to Multiply to Matrix Using Multi-dimensional Arrays
C Program to Find Transpose of a Matrix
C Program to Multiply two Matrices by Passing Matrix to a Function
C Program to Access Elements of an Array Using Pointer
C Program Swap Numbers in Cyclic Order Using Call by Reference
C Program to Find Largest Number Using Dynamic Memory Allocation
C Program to Find the Frequency of Characters in a String
C Program to Count the Number of Vowels, Consonants and so on
C Program to Remove all Characters in a String Except Alphabet
C Program to Find the Length of a String
C Program to Concatenate Two Strings
C Program to Copy String Without Using strcpy()
C Program to Sort Elements in Lexicographical Order (Dictionary Order)
C Program to Store Information of a Student Using Structure
C Program to Add Two Distances (in inch-feet) System Using Structures
C Program to Add Two Complex Numbers by Passing Structure to a Function
C Program to Calculate Difference Between Two Time Periods
C Program to Store Information of Students Using Structure
C Program to Store Information Using Structures with Dynamically Memory Allocation
C Program to Write a Sentence to a File
C Program to Read a Line From a File and Display it
C Program to Display its own Source Code as Output
C Programming Code To Create Pyramid and Pattern
Simple C Programs
1. Hello World Program in C
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

You might also like