 # C Programming Code Examples

## C > Recursion Code Examples

### C Program to find Power of a Number using Recursion

C Code to Illustrate the Concept of Unions - C Define the union named number with two variables j1 and j2. Define the union variable x. Take the value of two variables using dot operator(i.e. x.j1, x.j2) as input. Print values

Print Armstrong Numbers from 1 to 1000 - Program code print Armstrong Number from 1 to 1000. An Armstrong number is an n-digit base b number such that the sum of its (base b) Digits Raised to the Power n is the number

C++ Language Print Strings on the Screen - Enter a string and receive the string using the function 'gets()'. C++ program ask to the user to "enter a string" like your first name, then it will display your first name after "Hello", print

Code Find Maximum Between 2 Numbers - C program code to input two numbers and find maximum between two numbers using conditional/ternary operator ?:. How to find maximum minimum between two numbers

C++ Program Calculate GCD of 2 Integers - Examples on different ways to calculate GCD of two integers (for both Positive & Negative integers) using "Loops and Decision" making statements. The "Largest integer" which can

Convert Decimal to Octal Number System - C Program Code input decimal number and convert to octal number system. Decimal number system is a base 10 number system. Decimal number system uses 10 symbols to

C++ language has many built-in operators - Operator is a symbol that is used to perform "mathematical" or "logical" manipulations. +, -, *, /, %, Addition, Subtraction, Division and Multiplication, Modulus, ++, -- Increment and

Assignment Operators in The C Language - C Programming to assignment operators. An Assignment Operator is used for assigning a value to a variable. C code demonstrate the working of assignment operators. The most