# C++ Programming Code Examples

## C++ > Mathematics Code Examples

### Reverse Number in C++ programming

C++ Program Find the Area of a Triangle -
Enter size of each sides of 'triangle'. To find the area of triangle in which values of three sides are given we can use Heron's formula. To apply "Heron's formula" there should be

C++ Programs For Inorder Tree Traversal -
C++ program, without recursion, displays the nodes of a "Particular Binary Tree" in inorder fashion without using recursive traversal. So Enter value of root node. Enter value of node

C Count Trailing Zeros in a Binary Number -
How to find total number of trailing zeros in any given number using bitwise operator in C programming. Write a C program code input any number from user and count number of...

C Merges Lines Alternatively From 2 Files -
Program that merges lines alternatively from 2 files & print result. Getting the names of file to be concatenated. Opening the files in read only mode. Opening a new file in write mode.

Implements Max-Flow Min-Cut Theorem -
Program demonstrates implementation of max-flow_min-cut_theorem. So returns true if there is a 'path from source' 's' to sink 't' in residual graph. Also fills parent[] to store the

How to Call a Function using this Pointers -
How to declare a function pointer and how to call a function using this pointer in C. We can have concept of Pointer to a function known as function pointer in C. In this C tutorial, we

C Sort Structures on the basis of Structure -
Using cricket, declare an array player with 10 elements and write a c program to read the information about all the 10 players and print a team wise list containing names of players

C++ Program to Implement LeftList Heap -
In this, Merge rhs into the priority queue. rhs becomes empty. rhs must be different from this and Internal method to merge two roots. Deals with "deviant cases" and calls recursive