 # C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### Program to find the Area of any Triangle having values of three sides

C Find Power of a number using Recursion - First give a meaningful name to our recursive function say pow(). The function must accept 2 numbers i.e. base. exponent and calculate its power. Hence, take 2 parameters for base

Find GCD of two Numbers using Recursive - In mathematics, the 'Euclidean' algorithm, or Euclid's algorithm, is a method for computing the 'greatest common divisor' of two (usually positive) integers, also known as the greatest

Program calculate & print the value of nCr - In the following C program we are calculating & displaying the value of nCr. nCr can also be represented as C(n,r). C Language function is used to find the factorial of given number and

C Check a Number is Divisible by 5 and 13 - Check whether a number is divisible by 5 and 13 or not using if else. A number is divisible by some other number if it gives 0 as remainder. To check if a number is exactly divisible by a...

C++ language Simple Stack using Pointers - A 'stack' is a basic "data structure" and can be defined in an 'Abstract', implementation-free manner, or it can be "Generally Defined" as a Linear List of items in which all additions and

C++ Language List of Reserved Keywords - Any "Programming Language" has a "list" of keywords. C++ Keywords are list of reserved words for this Programming Language. Each keyword has a special meaning and it can not

Converting Lowercase String to Uppercase - C program 'Converting string' from lowercase to uppercase string using loop. Internally in C language every characters are represented as an integer value known as ASCII value. Where

Program to Implement strpbrk() Function - Locates "first occurrence" in string string1 of any character in string string2, If a character from string string2 is found, a pointer to the character in string 'string1' is returned, if not