Table of Contents
- C Basic Coding on if else statement
- C Basic Coding on While loop
- C Program on for loop
- C Program on Switch Statement
- C Program on Pointer concepts
- C Basic Programs on Array Concepts
- C Coding questions on String Concepts
- C Coding problems on Matrix Concept
- C Coding Questions of Singly Linked List
- C Coding Questions of Doubly Linked List
- C Coding Questions of Circular Linked List
- C Coding questions on Searching
- C Coding questions on Sorting
C Basic Coding on if else statement
- C program to print maximum among two numbers.
- C program to print maximum among three numbers.
- C program to check a given number is divisible by 3 or not.
- C program to check a given number is divisible by 5 or not.
- C program to check a given number is divisible by 11 or not.
- C program to check a given number is even or odd.
- C program to check whether a year is leap year or not.
- C program to check a given input is digit or not.
- C program to check a given input is alphabet or not.
- C program to check a given input is digit or alphabets.
- C program to check a given number is positive or negative number.
- C program to convert temperature from Celsius to Fahrenheit and Fahrenheit to Celsius.
- C program to check whether a character is vowel or consonant.
- C program to check whether a character is vowel or consonant or special character.
- C program to check a given character is uppercase or lowercase.
- Write a C program to print week day for a given input week.
- Write a C program to print number of days for a given input month.
- C program to check a triangle is equilateral, isosceles or scalene triangle.
- C Program to check a person is valid for vote or not?
- C Program to check Division on the basis of marks obtained by students.
Percentage >= 60% : Division 1
Percentage >= 45% : Division 2
Percentage >= 30% : Division 3
Percentage < 30% : Fail
- C program to Calculate percentage and grade of students on the basis of marks obtained in 5 subjects Maths, Physics, Chemistry, English and Hindi. Marks of subject is taken as an input:
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F
C Basic Coding on While loop
- C program to print all natural numbers from 1 to n using while loop.
- C program to print all even numbers between 1 to 100 using while loop.
- C program to print all odd number between 1 to 100 using while loop.
- C program to print sum of all even numbers between 1 to n using while loop.
- C program to print sum of all odd numbers between 1 to n using while loop.
- C program to print multiplication of any number using while loop.
- C program to count the digits of a given number using while loop.
- C program to print the sum of digits of a given number using while loop.
- C program to print all natural numbers in reverse order using while loop.
- C program to check whether a given number is Prime or not using while loop.
- C program to print all Prime numbers between 1 to n using while loop.
- C program to find sum of all prime numbers between 1 to n using while loop.
- C program to check a given number is Armstrong or not using while loop.
- C program to print all Armstrong numbers between 1 to n using while loop.
- C program to check a given number is Perfect or not using while loop.
- C program to check all Perfect numbers between 1 to n using while loop.
- C program to check a given number is Strong number or not using while loop.
- C program to print all Strong numbers between 1 to n using while loop.
- Write a program in C to swap first and last digit of number using while loop.
- C Program to swap values using third variable using while loop.
- C Program to swap values without using third variable using while loop.
- C program to calculate power of a number without using pow method using while loop.
- C program to find power of a number without using pow method using while loop.
- C program to calculate power of a number using pow method using while loop.
- C Program to check number is palindrome or not using while loop.
- C Program to print Fibonacci series of a given number using while loop.
- C Program to print Fibonacci series of a given number using recursion using while loop.
- C Program to print the frequency of digits in given number using while loop.
- Write a program in C to print ASCII character with values using while loop.
- C program to print all alphabets from a to z using while loop.
- C program to print all uppercase alphabets using while loop.
- C program to print all lowercase alphabets using while loop.
- C program to print all factors of a number using while loop.
- C program to print HCF (GCD) of two numbers using while loop.
- C program to print LCM of two numbers using while loop.
- Write a C program to find all prime factors of a number using while loop.
C Program on for loop
- C program to print all natural numbers from 1 to n.
- C program to print all even numbers between 1 to 100.
- C program to print all odd number between 1 to 100.
- C program to print sum of all even numbers between 1 to n.
- C program to print sum of all odd numbers between 1 to n.
- C program to print multiplication of any number.
- C program to count the digits of a given number.
- C program to print the sum of digits of a given number.
- C program to print all natural numbers in reverse order.
- C program to check whether a given number is Prime or not.
- C program to print all Prime numbers between 1 to n.
- C program to find sum of all prime numbers between 1 to n.
- C program to check a given number is Armstrong or not.
- C program to print all Armstrong numbers between 1 to n.
- C program to check a given number is Perfect or not.
- C program to check all Perfect numbers between 1 to n.
- C program to check a given number is Strong number or not.
- C program to print all Strong numbers between 1 to n.
- Write a program in C to swap first and last digit of number.
- C Program to swap values using third variable.
- C Program to swap values without using third variable.
- C program to calculate power of a number without using pow method.
- C program to find power of a number without using pow method.
- C program to calculate power of a number using pow method.
- C Program to check number is palindrome or not.
- C Program to print Fibonacci series of a given number.
- C Program to print Fibonacci series of a given number using recursion.
- C Program to print the frequency of digits in given number.
- Write a program in C to print ASCII character with values.
- C program to print all alphabets from a to z.
- C program to print all uppercase alphabets using while loop.
- C program to print all lowercase alphabets using while loop.
- C program to print all factors of a number.
- C program to print HCF (GCD) of two numbers.
- C program to print LCM of two numbers.
- Write a C program to find all prime factors of a number.
C Program on Switch Statement
- C program to print day name of given week using switch statement.
- C program print total number of days in a given month using switch Statement.
- C program to check a given alphabet is vowel or consonant using switch statement.
- C program to check a given number is positive, negative or zero using switch statement.
- C program to print maximum among two numbers using switch statement.
- C program to check a given number is even or odd using switch statement.
- C program to create Simple Calculator using switch statement.
- C Program to check whether a year is a leap year or not using switch statement.
- C Program to check a given triangle is an equilateral, isosceles or scalene triangle using switch statement.
- C Program to Convert positive number into negative and negative number into a positive using switch statement.
C Program on Pointer concepts
- C program to find the sum of two numbers using pointers.
- C program to swap two numbers using pointers.
- C program to find length of string using pointers.
- C program to copy one string to another using pointers.
- C program to concatenate two strings using pointers.
- C program to compare two strings using pointers.
- C program to find reverse of a string using pointers.
- C program to count the number of vowels and consonants in a string using a pointer
- C program to find the factorial of a given number using pointers
- C program to sort array using pointers.
- C program to copy one array using pointers.
- C program to swap two arrays using pointers.
- C program to reverse an array using pointers.
- C program to search an element in array using pointers.
- C program to access two dimensional array using pointers.
- C program to add two matrix using pointers.
- C program to multiply two matrix using pointers.
- C program to compute the sum of all elements in an array using pointers.
C Basic Programs on Array Concepts
- C program to take input and print elements of array.
- C program to count total number of elements in array.
- C program to count total number of even and odd elements in an array.
- C program to count total number of negative elements in an array.
- C program to print all negative elements in an array.
- C program to find reverse of an array.
- C program to find reverse of an array without using temp variable.
- C program to find sum of all array elements.
- C program to print minimum and maximum element in an array.
- C program to print second largest element in an array.
- C program to copy one array to another array.
- C program to insert an element in an array at end.
- C program to insert an element in an array at first.
- C program to insert an element in an array at given location.
- C program to delete an element in an array at end.
- C program to delete an element in an array at first.
- C program to delete an element from an array at given index.
- C program to count and print frequency of each element in an array.
- C program to print all unique elements in the array.
- C program to count total number of duplicate elements in an array.
- C program to delete all duplicate elements from an array.
- C program to merge two array to third array.
- C program to sperate even and odd number of array in two separate array.
- C program to search an element in an array.
- C program to sort array elements in ascending order.
- C Program to sort array elements in descending order.
- C program to perform one left rotation on array.
- C program to perform one right rotation on an array.
- C program to perform two left rotation on array.
- C program to perform two right rotation on an array.
- C program to check two array are equal in size or not.
- C program to find largest and smallest number in array.
- C program to find second highest number in an array.
- C program to find top two maximum number in array.
- C Program to merge two arrays.
C Coding questions on String Concepts
- C program to print the length of given string.
- C program to concatenate two strings.
- C program to compare two strings.
- C program to perform copy of one string to another string.
- C program to convert lowercase string to uppercase.
- C program to convert uppercase string to lowercase.
- C program to reverse order of words in a given string.
- C program to print the frequency of alphabets, digits or special character in a string.
- C program to count total number of vowels and consonants in a string.
- C program to count total number of words in a string.
- C program to find reverse of a string.
- C program to check whether a string is palindrome or not.
- C program to print the first character in a given string.
- C program to print the last character in a given string.
- C program to print the frequency of each character in a string.
- C program to find highest frequency character in a string.
- C program to find lowest frequency character in a string.
- C program to remove first character from string.
- C program to remove last character from string.
- C program to remove all vowels from string.
- C program to remove all consonants from a given string.
- C program to replace all space with * in a given string.
- C Program to remove line break from the string.
C Coding problems on Matrix Concept
- C program to add two matrices.
- C program to subtract two matrices.
- C program to multiply two matrices.
- C program to find transpose of a matrix.
- C program to find upper triangular matrix.
- C program to find lower triangular matrix.
- C program to perform Scalar matrix multiplication.
- C program to check whether two matrices are equal or not.
- C program to find sum of each row and column of a matrix.
- C program to find sum of main diagonal elements of a matrix.
- C program to find sum of minor diagonal elements of a matrix.
- C program to interchange diagonals of a matrix.
- C program to find sum of upper triangular matrix.
- C program to find sum of lower triangular matrix.
- C program to find determinant of a matrix.
- C program to check Identity matrix.
- C program to check Sparse matrix.
- C program to check Symmetric matrix.
C Coding Questions of Singly Linked List
- C Program to Create and Traverse a Singly linked list.
- C Program to Insert a node at the beginning of the Singly linked list.
- C Program to Insert a node at the End of Singly Linked List.
- C Program to Insert a node at the Given location of Singly Linked List.
- C Program to Search an element in the Singly linked list.
- C Program to Delete a node at the beginning of the Singly linked list.
- C Program to Delete a node at the End of the Singly linked list.
- C Program to Delete a node at the Given Location of the Singly linked list.
- C Program to Reverses the Singly linked list.
C Coding Questions of Doubly Linked List
- C Program to Create and Traverse a Doubly Linked List.
- C Program to Insert a node at the beginning of the Doubly Linked List.
- C Program to Insert a node at the End of Doubly Linked List.
- C Program to Insert a node at the Given location of Doubly Linked List.
- C Program to Search an element in the Doubly Linked List.
- C Program to Delete a node at the beginning of the Doubly Linked List.
- C Program to Delete a node at the End of the Doubly Linked List.
- C Program to Delete a node at the Given Location of the Doubly Linked List.
- C Program to Reverses the Doubly Linked List.
C Coding Questions of Circular Linked List
- C Program to Create and Traverse a Circular Linked List.
- C Program to Insert a node at the beginning of the Circular Linked List.
- C Program to Insert a node at the End of Circular Linked List.
- C Program to Insert a node at the Given location of Circular Linked List.
- C Program to Search an element in the Circular Linked List.
- C Program to Delete a node at the beginning of the Circular Linked List.
- C Program to Delete a node at the End of the Circular Linked List.
- C Program to Delete a node at the Given Location of the Circular Linked List.
- C Program to Reverses the Circular Linked List.
C Coding questions on Searching
- C Program to perform linear search.
- C Program to perform Binary Search.
C Coding questions on Sorting
- C Program to Implement Bubble Sort.
- C Program to Implement Selection Sort.
- C Program to Implement Insertion Sort.
- C Program to Implement Quicksort.
- C Program to Implement Counting Sort.
- C Program to Implement Merge Sort.
- C Program to Implement Radix Sort.
- C Program to Implement Bucket Sort.
- C Program to Implement Heap Sort.
- C Program to Implement Shell Sort.