C++ Programming Code Examples
C++ > Arrays and Matrices Code Examples
Programming Code for One Dimensional (1D) Array
Program code Find Quotient & Remainder -
User is asked to enter the Dividend & Divisor and the program then finds the quotient and remainder based on the input values and the modulus operator "%" returns the remainder
Count total Duplicate Elements in an array -
Code read elements in an array from user and count total number of duplicate elements in array. C program code to find all duplicate elements in an unsorted array. How to list all
Create strings, shuffle existing strings in C -
C programming code randomize string STR. Sefinitely not cryptographic secure. Strip trailing newline. Pick a random char out of input string. Swap orig char with pick and...
Find sum of Even Numbers in given Range -
Input upper limit to find sum of even number. Store it in a variable say N. Initialize another variable to store sum with 0 say sum = 0. To find sum of even numbers we need to iterate
C Program to Linked List implementation -
Create list, add in the list, delete in the list, append two list, show list, add in beginning, add in end, add after a given element, return to main menu, delete in beginning, delete in
C Program Copy Strings without by strcpy -
You can use the 'strcpy()' function to copy the content of "one String to another" but, this C Program 'copies the Content' of one string to another manually without "strcpy()" function.
Find the Number of Integers Divisible by 5 -
C Program to which calculates the number of integers divisible by 5 in the given range. This C program takes the range as input and finds the number of integers divisible by 5 in range.
C Language Code Display Prime Numbers -
Any whole number which is Greater than 1 & has only two factors that is 1 and the number itself, is called a "Prime Number". Other than these two number it has No Positive Divisor.