# C++ Programming Code Examples

## C++ > Strings Code Examples

### Programming Code to Concatenate String

C++ Same Namespaces in Multiple Places -
In C++, namespace can be defined in different parts of the program. All the objects that are in different parts of a program, but if in same namespace will form one namespace. Better

How to use Void (void) Data Type in The C -
Void in C means 'nothing' or 'no-value'. This is used either with pointer declarations or with function declarations. And declares function which takes no arguments but returns an...

Code Finds product of Digits of a Number -
C program code input a number and calculate product of its digits. I have divided the logic to calculate product of digits in three steps. Extract last digit of the number. Multiply the

C Code Find Power of a Number Recursion -
C Language program code to find Power of a Number using Recursion. Power of a number is the number multiplied to itself for number of times it has been raised to Exam. 9^3=729

Find Angles of triangle if two angles given -
C Program to input two angles from user and find third angle of the triangle. How to find all angles of a triangle if two angles are given by user using C programming. Sum of angles of

Find Maximum between 2 Numbers using -
C Program input two numbers from user and find maximum between two numbers using switch case. Input two numbers. Store it in a variable say j1 & j2. Switch expression j1 > j2

C Programming Codes Reverse an Integer -
C Reversing an integer, takes an integer input from the user. Then the while loop is used until n != 0 is false. In each iteration of while loop, the remainder when n is divided by 10

Simple Mailing list use array of structures -
C programming code to Mailing list. Initialize the structure array. Initialize the list. Get a menu selection. Input addresses into the list. Find an unused structure. Delete an address.