 # C++ Programming Code Examples

## C++ > Beginners Lab Assignments Code Examples

### To perform operations on complex number using operator

Evaluates the Value of Any Polynomial of - Give the degree of the polynomiala. Give the value of the coefficients. Give the value of the coefficients. Give the values of the coefficient of polynomialb. Give value to be substituted

Calculate Sum Calculate Average of Array - C Program calculates the sum & average of an array. It declares an array and then add the array elements and finds the average of the array. Find the sum of negative numbers and

Code Concatenates 2 Strings in One String - Concatenation of 2 strings is simple copying a string to another. To concatenate two Strings str1 & str2, you will copy all characters of str2 at the end of str1. 'Store it in' a variable str1 &

C Program to Implement Stack Operations - C Implement stack operations using dynamic memory allocation. Use malloc function to allocate memory. Define separate functions for the operations like push, pop and display.

Code Find the Biggest Number in an Array - C Program to find the biggest number in an array of numbers using recursion. Program prints the largest number in an unsorted array of elements using recursion. Array is...

Program to Swap Numbers in Cyclic Order - Notice that we have not returned any values from the 'cyclicSwap()' function. When these variables are swapped in "Cyclic Order" in the 'cyclicSwap()' function, variables a, b and c in

A Calculator by Switch Case and Functions - Create menu driven Calculator that performs basic mathematic operations (Add, Subtract, Multiply, Divide) use switch case & functions. The calculator should input two numbers and

Count Frequency of Characters in The C++ - Frequency of character in a string means how many times a "particular character" is present in a string. In sample; suppose we have string hitesh in this word h repeated 2 times, it's the