This Page has a massive bunch of most commonly asked and most important tricky coding question in c for freshers to crack the coding interview rounds.
Along with the of pattern programming in C, in coding rounds, interviewers commonly gives you some question to write a program on it.
This Programs may contain some operations to perform on numbers, strings, arrays or on linked list.
Below are the c programs asked in coding round which are categoried section wise. Prepare each variety of coding questions which is very important and will help you to crack your coding rounds.
Coding Question in C on Numbers
- Write a program to reverse an integer in C.
- Write a program in C to check whether an integer is Armstrong number or not.
- Write a program in C to check given number is prime or not.
- Write a program in C to print the Fibonacci series using iteration.
- Write a program in C to print the Fibonacci series using recursion.
- Write a program in C to check whether a number is palindrome or not using iteration.
- Write a program in C to check whether a number is palindrome or not using recursion.
- Write a program in C to find greatest among three integers.
- Write a program in C to check if a number is binary.
- Write a program in C to find sum of digits of a number using recursion.
- Write a program in C to swap two numbers without using third variable.
- Write a program in C to swap two numbers using third variable.
- Write a program in C to find prime factors of a given integer.
- Write a program in C to add two integer without using arithmetic + operator.
- Write a program in C to check given number is perfect or not.
- C Program to find the Average of numbers with explanations.
- C Program to calculate factorial using iterative method.
- C Program to calculate factorial using recursion.
- C Program to check a given number is even or odd.
- C program to print first n Prime Number with explanation.
- C Program to print Prime Number in a given range
- C Program to find Smallest number among three.
- C program to calculate the power using the POW method.
- C Program to calculate the power without using POW function.
- C Program to calculate the square of a given number.
- C Program to calculate the cube of a given number
- C Program to calculate the square root of a given number.
- C program to calculate LCM of given two numbers.
- C Program to find GCD or HCF of two numbers.
- C Program to find GCD of two numbers using recursion.
- C Program to Convert Decimal Number into Binary.
- C Program to convert Decimal number to Octal number.
- C Program to check the given year is a leap year or not.
- C Program to convert Celsius to Fahrenheit.
- C Program to convert Fahrenheit to Celsius.
- C program to calculate Simple Interest with explanation.
C Coding Interview Questions on String
- Write a method in C which will remove any given character from a String.
- Write a program in C to count occurrence of a given character in a String.
- Write a program in C to check if two Strings are Anagram.
- Write a program in C to check a String is palindrome or not.
- C program to check given character is vowel or consonant.
- C program to check given character is digit or not.
- C program to replace the string space with a given character.
- C program to convert lowercase char to uppercase of string.
- C program to convert lowercase vowel to uppercase in string.
- C program to delete vowels in a given string.
- C program to count Occurrence Of Vowels & Consonants in a String.
- C program to print the highest frequency character in a String.
- C program to Replace First Occurrence Of Vowel With ‘-‘ in String.
- C program to count alphabets, digits and special characters.
- C program to separate characters in a given string.
- C program to remove blank space from string.
- C program to remove blank space from string.
- C program to concatenate two strings.
- C program to remove repeated character from string.
- C program to calculate sum of integers in string.
- C program to print all non repeating character in string.
- C program to copy one string to another string.
- C Program to sort characters of string.
- C Program to sort character of string in descending order.
Coding Questions in C on Array
- Write a program in C for, In array 1-100 numbers are stored, one number is missing how do you find it.
- Write a program in C for, In a array 1-100 multiple numbers are duplicates, how do you find it.
- Write a program in C to find first duplicate number in a given array.
- Write a program in C to remove duplicate elements form array in C.
- Write a program in C for, Given two arrays 1,2,3,4,5 and 2,3,1,0,5 find which number is not present in the second array.
- Write a program in C for, How to compare two array is equal in size or not.
- Write a program in C to find largest and smallest number in array.
- Write a program in C to find second highest number in an integer array.
- Write a program in C to find top two maximum number in array?
- C program to print array in reverse Order.
- C program to reverse an Array in two ways.
- C Program to calculate length of an array.
- C program to insert an element at end of an Array.
- C program to insert element at a given location in Array.
- C Program to delete element at end of Array.
- C Program to delete given element from Array.
- C Program to delete element from array at given index.
- C Program to find sum of array elements.
- C Program to print all even numbers in array.
- C Program to print all odd numbers in array.
- C program to perform left rotation of array elements by two positions.
- C program to perform right rotation in array by 2 positions.
- C Program to merge two arrays.
- C Program to find highest frequency element in array.
- C Program to add two number using recursion.
- C Program to find sum of digit of number using recursion.
C Coding Interview Questions on Linked List
- Write a program in C to reverse a singly linked list.
- Write a program in C to find 3rd element of Linked List from last in single pass.
- Write a program in C to find middle element of a linked list in single pass.
- Write a Program in C to Insert a node at the beginning, at End and at given location of the Singly linked list.
- Write a Program in C to Search an element of the Singly linked list.
- Write a Program in C to Delete a node at the beginning, at end and at given location of the Singly linked list.
- Write a Program in C to Reverses the Singly linked list.
C Interview Questions on Searching and Sorting
- Write a program in C to implement Insertion Sort.
- Write a program in C to implement Bubble Sort.
- Write a program in C to implement Selection Sort.
- Write a program in C to implement Quick Sort.
- Write a program in C to implement Heap Sort.
- Write a program in C to implement Radix Sort.
Binary Tree Coding question in C
Comming Soon (Work is in progress for this section)