 # C++ Programming Code Examples

## C++ > Mathematics Code Examples

### For Calculate Power of any number, multiply particular number by itself on the basis of power.

C Program Checking Armstrong Numbers - Check for Armstrong Number in C language. Armstrong Number: If sum of cubes of digits of number equal to same given number then the number is called as Armstrong Number.

C Program Find ASCII value of a Character - ASCII value represents the english characters as numbers, each letter is assigned a number from 0 to 127. For example, the ASCII value for uppercase X is 88. This program takes the

Function Classes in The C++ Programming - We have two classes XYZ and ABC. The XYZ class has two "private data members" ch and num, this class declares 'ABC' as Friend Class. This means that 'ABC' can access the private

C Code Calculate a floating-point average - C Program code to Calculate a floating-point average using pointers. Memory allocation failed. Terminating program. Output the average. The average of the the values you...

Code Find Largest of Three input numbers - C program to will prompt user to input three integer numbers and based on the input, it would compare and display greatest number as output. In this program number1, number2

Print the Kind of Rotation the AVL Tree is - Program to print the kind of rotation that is performed when an 'Element is inserted' or deleted from tree. In Discrete Mathematics, tree rotation is an operation on a binary tree

Order of Constructor Call in C++ language - In The C++ programming, When a default or parameterized constructor of a derived class is called, the "Default Constructor" of a base class is called automatically. As you create an

Finds the Frequency of the Word in String - Take any Sentence as input and store it in the array 'string[]'. If the input string has 't', 'h', 'e' and ' ' Consecutively, then store that values in the variables 't, h, e & space' respectively. Use