Here is a compilation of most frequently asked C programs for interviews. These programs are asked in technical rounds or coding rounds.
You are more than welcome to suggest other solutions for the below listed C programs. To suggest a solution, click the C program link and write your program / solution as a comment.
C Programs List
Arrays
- C program to convert decimal to binary number
- C program to find the unique element in an array
- C program to search an element using linear search
- C program to add and multiply two compatible matrices
- C program to find 2’s complement of a binary number
- C program to sort elements of an array using selection sort
- C program to print all values in an array less than given number
- C program to find number of duplicate elements in an array
- C program to interchange the largest and smallest elements in the array
- C program to search an element using binary search
- C program to multiply consecutive numbers in an array
- C program to find the largest and smallest number in an array
- C program to swap the contents and indexes in an array
- C program to reverse an array in place
- C program to check balanced parentheses
Functions
- C program to generate Fibonacci series using recursion
- C program to find gcd of given two numbers using recursion
- C program to find the factorial of a given number
- C program to demonstrate call by value and call by reference
Patterns
- C program to print a pattern
- C program to print a pattern
- C program to print a pattern of numbers as a pyramid
- C program to print a pattern of numbers
Pointers
- C program to compare two arrays using pointers
- C program to reverse the given string using a pointer
- C program to reverse an array in place using pointers
- C program to read and print a matrix using pointers
Strings
- C program to copy one string to another
- C program to reverse a given string
- C program to compare, concatenate and append strings using user defined functions
- C program to perform the different operations on strings
- C program to find the length of a string without using strlen
- C program to find a string is palindrome or not
- C program to implement predefined string functions
- C program to compare two strings without using library function
- C program to concatenate two strings without using library functions
Structures and Unions
- C program to demonstrate union
- C program to demonstrate structure
- C program to demonstrate accessing a structure using a pointer
- C program to demonstrate how to use a typedef struct in c
Others
- C program to find the largest of three numbers using ternary operator
- C program to find the GCD of given two numbers
- C program to find the sum of individual digits of a positive integer
- C program for perfect number
- C program to print prime numbers up to n
- C program to find the roots of a quadratic equation
- C program to swap two numbers without using a temporary variable
- C program to generate the first n terms of Fibonacci sequence
- C program which takes two integer operands and one operator
- C program for strong number
- C program to print prime numbers using Sieve of Eratosthenes
- C program to print the multiplication table of a given number
- C program to check whether the given number is armstrong or not
- C program to calculate the area of a triangle
Suryateja Pericherla, at present is a Research Scholar (full-time Ph.D.) in the Dept. of Computer Science & Systems Engineering at Andhra University, Visakhapatnam. Previously worked as an Associate Professor in the Dept. of CSE at Vishnu Institute of Technology, India.
He has 11+ years of teaching experience and is an individual researcher whose research interests are Cloud Computing, Internet of Things, Computer Security, Network Security and Blockchain.
He is a member of professional societies like IEEE, ACM, CSI and ISCA. He published several research papers which are indexed by SCIE, WoS, Scopus, Springer and others.
I really glad to locate this web site on bing, just what I was seeking for : D as properly saved to favorites.
hii
Ideas to built the own programs