# C Programming Code Examples

## C > Functions Code Examples

### C program to find power of a number using recursion

Check the Number can be Express as Sum -
Check if an integer can be 'expressed' as the "sum of two Prime Numbers" of all possible combinations with the use of functions. This program takes a positive integer and checks

Program Find the Area of Scalene Triangle -
First Input the length of a side of the triangle. Then Input the 'length of another side' of the triangle, then input the angle between these sides of the triangle. The area of the Scalene

C Code Find Perfect Numbers from 1 to N -
C program find Perfect numbers between 1 to n. Input Upper Limit to find Perfect numbers. Store it in a variable say end. Run a loop from 1 to end, increment 1 in each iteration. The...

Perform Particular Operation two Number -
To perform 'addition', 'subtraction', 'division' and 'multiplication' of any 2 numbers in C++, enter the 2 number and enter the operator to perform the particular math operation (+, -, *

C++ Implements Sorted Circularly Doubly -
Here is the source code of the C++ program to "display the values" present in the nodes cyclically. C++ language sample displays the nodes of a "Doubly Linked List" with the last

C Programs Binary Octal Hex Conversions -
C programming code example for Number Conversions: Binary to decimal, decimal to binary, decimal to octal, decimal to hex, octal to decimal, octal to binary, binary to octal,

Open Read Write and Close operation in C -
C file operations: Open, read, write and close operation in C. The fclose( ) function is used for closing an opened file. As argument you must provide a pointer to the file that you...

Find the Sum of All Nodes in a Binary Tree -
Program code to find the sum of all nodes in a binary tree. Structure to create the binary tree. Inserting elements in the binary tree. C Code to dynamically create new nodes. Code