C program to calculate sum of digits using recursion
Write a recursive function in C programming to calculate sum of digits of any number. How to calculate sum of digits of any number using recursion in C programming. Find sum of digits of a number using...
View ArticleC program to find GCD (HCF) of two numbers using recursion
Write a recursive function in C programming to find GCD (HCF) of two numbers. How to find GCD(Greatest Common Divisor) or HCF(Highest Common Factor) of any two given numbers using recursion in C...
View ArticleC program to find LCM of two numbers using recursion
Write a C program to find LCM(Least Common Multiple) of two numbers using recursion. How to find LCM of two given numbers in C programming using recursion. Recursive function to find LCM of two given...
View ArticleC program to print all strong numbers between two intervals using function
Write a function to print all strong numbers between a given interval in C programming. How to print strong numbers in a given range using functions in C programming. Write a C function to find strong...
View ArticleC program to print all Armstrong numbers between two intervals using function
Write a function to print all Armstrong numbers between a given interval in C programming. How to print all Armstrong numbers between a given range using functions in C programming. C function to print...
View ArticleC program to print all perfect numbers between given interval using function
Write a function to print all perfect numbers in a given interval in C programming. How to print all perfect numbers in a given range using functions in C program. C program to print all perfect...
View ArticleFunctions programming exercises and solutions in C
Functions in programming is a block of statements grouped together to perform some specific task. Functions provides modularity to our program which are easy to maintain, debug and understand....
View ArticleC program to print elements of array using recursion
Write a C program to print all elements of any array using recursion. C program to read elements in an array from user and display all its elements using recursion. How to display all elements of an...
View ArticleC program to find sum of array elements using recursion
Write a C program to find sum of array elements using recursion. C program to read elements in an array and find sum of array elements using recursion. How to find sum of elements of array using...
View ArticleC program to find all roots of a quadratic equation
Write a C program to find all roots of a quadratic equation. How to find all roots of a quadratic equation using if else in C programming. Finding all roots of a quadratic equation in C programming....
View ArticleC program to find all roots of a quadratic equation using switch case
Write a C program to find all roots of a Quadratic equation using switch case. How to find all roots of a quadratic equation using switch case in C programming. Finding all roots of a quadratic...
View ArticleC program to find maximum and minimum elements in array using recursion
Write a C program to find maximum and minimum elements in a given array using recursion. How to find maximum and minimum elements in any given array using recursion in C programming. Using recursion...
View ArticleC program to count all occurrences of a character in a string
Write a C program to count all occurrences of a character in a string using loop. How to find total occurrences of a given character in a string using for loop in C programming. Program to calculate...
View ArticleC program to search all occurrences of a character in a string
Write a C program to search all occurrences of a character in a string using loop. How to find all occurrences of a character in a given string using for loop in C programming. Program to print all...
View ArticleC program to find last occurrence of a word in given string
Write a C program to find last occurrence of a word in given string using loop. How to find last occurrence of a word in given string using loop in C programming. Program to search last index of a...
View ArticleC program to search all occurrences of a word in given string
Write a C program to search all occurrences of a word in given string using loop. How to find index of all occurrences of a word in given string using loop in C programming. Program to print index of...
View ArticleC program to remove last occurrence of a word in string
Write a C program to remove from last occurrence of a word in given string using loop. How to remove the last occurrence of any word in given string using loop in C programming. Removing last...
View ArticleC program to remove all occurrences of a word in string
Write a C program to remove all occurrences of a given word in string using loop. How to remove all occurrences of a word in given string using for loop in C programming. Deleting all occurrences of a...
View ArticleC program to count occurrences of a word in a string
Write a C program to count occurrences of a word in a given string using loop. How to count total occurrences of a given word in a string using loop in C programming. Program to count total number of...
View ArticleC program to toggle case of each character in a string
Write a C program to toggle case of each characters of a string using loop. How to change case of each characters of a string in C programming. Program to swap case of each characters in a string using...
View Article