C program to Demonstrate the Recursive function.

Write a C program to demonstrate the recursive function.Recursion  is the programming technique that a process invoking itself again and again. In this program, We reverse the given number and checks it is a palindrome or not. Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* for personal …

Strong Number in C – Check Using Digit Factorials

A strong number in C (also called a special number or Peterson number) is a number where the sum of the factorials of its individual digits equals the number itself. For 145: the digits are 1, 4, and 5. Their factorials are 1! = 1, 4! = 24, 5! = 120. The sum 1 + …

Add One to Each Digit of a Number in C

This C program adds 1 to each digit of a given number. When a digit is not 9, it simply increases by 1: 3→4, 5→6. When a digit is 9, it wraps to 0 and carries +1 to the next digit to the left. This carry propagates: if the next digit is also 9, it …

Palindrome Program in C – Check Number (Iterative, Function, Recursive)

A palindrome program in C checks whether a number reads the same forwards and backwards. Numbers like 121, 1331, and 12321 are palindromes; 12345 is not. The standard technique is to reverse the digits and compare with the original. This page covers three versions: a simple iterative solution, a clean function-based version, and a recursive …

Binary to Decimal, Octal, and Hexadecimal in C – Conversion Program

Converting a binary number to decimal, octal, and hexadecimal in C demonstrates how the same bit pattern can be expressed in different bases. Binary uses base 2, decimal uses base 10, octal uses base 8, and hexadecimal uses base 16. Once you have the decimal value, C’s printf format specifiers (%o and %X) handle octal …

C Program to check the given number is Armstrong or not?

C Program to check the given number is Armstrong number or not?. Armstrong number is a number that is the sum of its own digits each raised to the power of the number of digits. Example: 153 = 1^3 + 5^3 + 3^3. Read more about C Programming Language . /************************************************************ You can use all …