c programs examples ,c programming examples ,c basic program with examples , scanftree
DESCRIPTION
c examples with basic level to expert level in following category 1-D Array Programs Algorithm Implementation Array Conversion Data structure Date and Time Decision and Loops Dynamic Allocation File Handling Frequently Asked C programs in interview Function Graphics Mathematical Programs Matrix Miscellaneous My First Program Number Programs Patterns Pointer Recursion Searching Series Sorting String Structure / Union SwappingTRANSCRIPT
1-D Array Programs in c1. Find the sum of two one-dimensional arrays using Dynamic Memory
Allocation
2. Stack PUSH & POP Implementation using Arrays
3. Program to remove duplicate element in an array
4. C Program to sort the matrix rows and columns
5. Write a c program for swapping of two arrays
6. C Program to read name and marks of students and store it in file
7. To find out the maximum number in an array using function
8. Operation on array in C
9. To insert a given number in the array using C
10. Highest and lowest number in array using C
11. Average of an array element in C
12. To Create an array in C
13. Initializing an array in declaration
14. Initializing an array using for loop
15. Use scanf to read data into array
16. Get Address of an array using Arrays and Pointers
17. Accessing an array using pointers
18. Merging of two sorted lists
19. Inverse of the list
20. Addition of the elements of the list
21. Address of each element in an array
22. Arrays of strings
Algorithm Implementation in c1. C Program to implement Huffman algorithm
2. C Program to implement An activity selection problem
3. C Program to implement Bellman-ford Algorithm
4. C Program to solve Knapsack problem
5. C Program to implement Breadth First Search (BFS)
6. C program to implement Depth First Search(DFS)
7. C program to create a subsets using backtracking method
8. C Program to search the perticulur pattern in the string using Horspool
method
9. C Program to find a minimum spanning tree using Prim’s algorithm
10. C program to cyclically permute the elements of an array
11. C Program to solve N Queen’s problem
12. C Program to implement Floyd’s Algorithm
13. C Program to implement Warshall’s Algorithm
14. Chess Board using DDA line drawing algorithm
15. Moving Wheel using Mid-Point Circle algorithm and DDA Line
algorithm
16. Draw a Ellipse : Mid-Point Algorithm
17. Draw a Line : DDA Line Drawing Algorithm
18. Draw a Line : Bresenham’s Line Drawing Algorithm
19. Draw a Circle : Mid-Point Algorithm
20. Draw a Circle : Bresenham’s Circle Algorithm
21. C program for bankers algorithm
22. C Program to implement CRC (Cyclic Redundancy Code)
23. To implement Tower Of Hanoi using C
24. Implementation of Bit stuffing Using C
25. Implementation of CHECKSUM
26. Implementation of Hamming Code
Array in c1. Find the sum of two one-dimensional arrays using Dynamic Memory
Allocation
2. Stack PUSH & POP Implementation using Arrays
3. Program to remove duplicate element in an array
4. C Program to sort the matrix rows and columns
5. Write a c program for swapping of two arrays
6. C Program to read name and marks of students and store it in file
7. To find out the maximum number in an array using function
8. Operation on array in C
9. To insert a given number in the array using C
10. Highest and lowest number in array using C
11. Average of an array element in C
12. To Create an array in C
13. Initializing an array in declaration
14. Initializing an array using for loop
15. Use scanf to read data into array
16. Get Address of an array using Arrays and Pointers
17. Accessing an array using pointers
18. Merging of two sorted lists
19. Inverse of the list
20. Addition of the elements of the list
21. Address of each element in an array
22. Arrays of strings
Conversion in c1. C program to convert binary to octal
2. C code to convert decimal to hexadecimal
3. C code for decimal to octal converter
4. Program to convert decimal to binary in c
5. Convert a binary number to decimal number in C
6. Convert a decimal number to hexadecimal number in C
7. To convert a decimal number to binary number in C
Data structure in c1. Perform Tree Operations – insert, traversal, preorder,post order and in
order
2. c program to Create a Tree
3. Stack PUSH & POP Implementation using Arrays
4. Implement stack and perform push, and pop operations
5. C Program to sort a linked list
6. Stack Programs
7. Doubly linked list Programs
8. Queues Programs
9. Circular Linked List Programs
10. Singly Linked List Programs
11. To create a doubly link list using C
12. count the number of nodes in a link list using C
13. To create a singly link list using C
Date and Time in c1. Show the ticking of Clock
2. Time functions in c
3. To compute the seconds from a given age using C
Decision and Loops in c1. Perform Tree Operations – insert, traversal, preorder,post order and in
order
2. Manage Menu Driven Program using switch statement
3. simple calculator, using switch statement in C
4. Use of Switch Case in C
5. Write a c program to check given string is palindrome number or not
Dynamic Allocation in c1. Perform Tree Operations – insert, traversal, preorder,post order and in
order
2. Find the sum of two one-dimensional arrays using Dynamic Memory
Allocation
File Handling in c1. c program to merge two files
2. C Program to read name and marks of students and store it in file
3. C Program for operations of Sequential file with records
4. C program for copies one file contents to another file
5. C Program for file operations
6. C Program to count number of characters in the file
7. To read a text file print it on the screen in C
8. Open a File
9. Read string from a file
Frequently Asked C programs ininterview in c
1. write a c program which produces its own source code as its output
2. C program to print hello world without using semicolon
3. To Find Factorial Of A Number Using C Program
4. To Find Fibonacci Series Using C Program
5. C program for solving quadratic equation
6. Write a c program to check given string is palindrome number or not
7. Write a c program to check given number is strong number or not
8. C program to find given number is prime or not
9. Write a c program to print Pascal triangle
10. Printing ascii value using c program
11. Write a c program to check given number is perfect number or not.
Graphics in c1. Fish Movement using c in graphics
2. Pendulum using c in graphics
3. Car Movement using c in graphics
4. Chess Board using DDA line drawing algorithm
5. Bouncing Ball using C Program
6. Moving Wheel using Mid-Point Circle algorithm and DDA Line
algorithm
7. Draw a Ellipse : Mid-Point Algorithm
8. Draw a Line : DDA Line Drawing Algorithm
9. Draw a Line : Bresenham’s Line Drawing Algorithm
10. Draw a Circle : Mid-Point Algorithm
11. Draw a Circle : Bresenham’s Circle Algorithm
12. 2D Transformations: Translations
13. 2D Transformations: Scaling
14. 2D Transformations: Rotation
15. Show the ticking of Clock
Mathematical Programs in c1. C Program to calculate the Combinations and Permutations
2. c program to find hcf and lcm
3. Find power of a number using recursion using c program
4. To classify the triangle as equilateral, isosceles and scalene
5. To Find The Roots Of Quadratic Equation in C
6. To evaluate a^b using function using C
7. To calculate the tax using function in C
8. C program to illustrate Airthmatic operators
9. Compute the area of a circle using C
10. Compute simple interest using C
11. To compute the average of three given numbers using C
12. Print the square of the number in C
13. Division of given marks
14. To print the multiplication table of a given number
15. To evaluate x^n.
16. write a c program which produces its own source code as its output
17. To Find Multiplication Table Using c Program
18. C program for solving quadratic equation
19. Check the given number is armstrong number or not using c program
Matrix in c1. Addition of All Elements in Matrix
2. C Program to accept two matrices and check if they are equal
3. C Program to check if a given matrix is an identity matrix
4. To find the frequency of odd numbers and even numbers in matrix
5. C Program to sort the matrix rows and columns
6. C Program to find the Inverse of the Matrix
7. Add the diagonal elements of the matrix using C
8. Multiplication of two matrix using C
9. Addition of two matrix using C
10. To create a matrix using C
11. Transpose of a matrix
12. find the sparse matrix
Miscellaneous in c1. C program to Accept the height of a person in centimeter and
categorize the person based on height
2. C Program to Maintain an Inventory of items in Online Store
3. Print mark-sheet of students
4. Manage Menu Driven Program using switch statement
5. Categorize students according to their marks
6. C Program to calculate the total execution time of a program
7. Formatting of Integers, Real Numbers and Strings in C
8. simple calculator, using switch statement in C
9. Find out the size of the different data types in C
10. Demonstrate global and internal variables in C
11. Count the number of vowels in a given string using C
12. To check whether a string belongs to a given grammer or not
13. C program to print hello world without using semicolon
14. Printing ascii value using c program
My First Program in c1. C program to print “HELLO WORLD”
Number Programs in c1. Find power of a number using recursion using c program
2. To find the maximum number within n given numbers using pointers
3. To compute the average of n given numbers using pointers
4. To check a number is prime or not using function in C
5. Addition of three numbers using function in C
6. To check a given number is Armstrong or not using C
7. To check a given number is prime or not using C
8. To print the prime numbers using C
9. Lowest number from three given numbers in C
10. To add the even numbers in C
11. To add the odd numbers in C
12. To print the even numbers in C
13. To print the odd numbers in C
14. To reverse of a given number in C
15. To Sum of digit in C
16. To print natural numbers in C
17. To to check leap year or not
18. To check a given number is odd or even
19. To print the multiplication table of a given number
20. C program for odd or even number
21. Write a c program to check given number is strong number or not
22. C program to find given number is prime or not
23. Check the given number is armstrong number or not using c program
24. Write a c program to check given number is perfect number or not.
25. Inverse of the list
Patterns in c1. Print Patterns in C : part 5
2. Print Patterns in C : part 4
3. Print Patterns in C : part 3
4. Print Patterns in C : part 2
5. Print Patterns in C : part 1
6. Write a c program for Floyd’s triangle
7. Write a c program to print Pascal triangle
Pointer in c1. Reverse the order of each word of the string using pointers
2. Reverse a string using pointers
3. To find the maximum number within n given numbers using pointers
4. To compute the average of n given numbers using pointers
5. To swap the address of two variables using pointer
6. C program to sort n given numbers using pointers
7. Write a c program to check given string is palindrome number or not
8. Get Address of an array using Arrays and Pointers
9. Accessing an array using pointers
Recursion in c1. Find power of a number using recursion using c program
2. Find gcd of a number using recursion in c program
3. Factorial program in c using recursion
4. To implement Tower Of Hanoi using C
5. To Find Factorial Of A Number Using C Program
6. To Find Fibonacci Series Using C Program
7. Write a c program to check given string is palindrome number or not
Searching in c1. C Program for operations of Sequential file with records
2. Sequential Search Programs in C
3. Binary Search Programs in C
4. Searching using pointers in C
5. Interpolation Search Programs in C
6. Linear search of an array
7. Binary search of an array
8. find Lengths of strings
Series in c1. Write a c program to find out the sum of given H.P.
2. Write a c program to find out the sum of given G.P.
3. Write a c program to find out the sum of given A.P.
4. Write a c program to find out the sum of series 1^3 + 2^3 + …. +
n^3
5. Write a c program to find out the sum of series 1^2 + 2^2 + …. +
n^2
6. Write a c program to find out the sum of series 1 + 2 + …. + n
7. To print series using function in C
8. To Find Fibonacci Series Using C Program
Sorting in c1. C Program To Sort Names
2. C Program to sort a linked list
3. C Program to implement bucket sort
4. C Program to implement HEAP sort
5. C Program to implement Insertion sort
6. C program to implement MERGE sort
7. C Program to implement Selection sort
8. C Program to implement topological sort
9. C Program to implement Radix Sort
10. C program to sort n given numbers using pointers
11. Quick Sort Programs in C
12. Shell Sort Programs in C
13. Selection Sort Programs in C
14. Bubble Sort Programs in C
String in c
1. Write a c program for swapping of two string
2. To delete n Characters from a given position in C
3. To insert a sub-string in to given main string using C
4. To compare the two strings using C
5. Reverse the order of each word of the string using pointers
6. Reverse a string using pointers
7. Concatenate two given string
8. To print the string in first case using C
9. To print a given string in upper case using C
10. To print a given string in lower case using C
11. Count the number of words in a given string using C
12. Count the number of vowels in a given string using C
13. To print the reverse of a given string using C
14. To find out Length of a given string using C
15. Write a c program to check given string is palindrome number or not
16. Read string from a file
17. Pass string to a function
18. Displaying a string
19. Arrays of strings
20. Read string from keyboard
21. combines the two strings
Swapping in c1. Write a c program for swapping of two string
2. Write a c program for swapping of two arrays
3. To swap the address of two variables using pointer
4. To swap the values of two variables using C
5. Swaping without using a third variable in C
6. Largest number from three given numbers
Total c Programs 286