# C++ Programming Code Examples

## C++ > Arrays and Matrices Code Examples

### Program to Calculate Average of Numbers Using Arrays

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

Calculate Display the Grade of the Student -
To calculate "grade of a student" on the basis of his total marks in C++ Programming, ask to the user to enter marks obtained in some subjects (5 subjects here). To calculate grade

Writing Comment in C program examples -
Commenting in C programming language. This is a using single line comment example. This is a using mult-line comment. Slash that's not a commment, divide operator...

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 Program Find First N Fibonacci Numbers -
C Coding calculate the Fibonacci Numbers in the series. First two numbers in the Fibonacci sequence are 0, 1 & each subsequent number is the sum of the previous 2. Fn = Fn-1 + Fn-2

Check if Given Binary Tree is an AVL Tree -
This is a C++ Program to check if BST is AVL. An AVL tree is a self-balancing binary search tree. It was the first such data structure to be invented. In an "AVL tree", the heights of the

Find GCD of Given Numbers use Recursion -
C Program Code to using Recursion, finds the GCD of the two numbers entered by the user. The user enters 2 numbers by using a space in between them or by pressing enter after each

C program to Calculate 1+2+3+4+5+...+N -
In The C, you can print any number series and I will show you how to 'print number series' in C Language with explanation. In case of print number series you need to focus on common