 C Programming Code Examples

C > Arrays and Matrices Code Examples

Put Even & Odd Elements of an Array in 2 Separate Arrays

Display largest element of an input Matrix - C language code to pick & display the largest element of an input matrix. How many rows in the matrix? How many columns in the matrix? The largest element of the matrix is

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

Prints the Sum of all Odd Numbers in C++ - The digit sum of a given integer is the sum of all its digits (digit sum of '84001' is calculated as 8+4+0+0+1 = 13). Odd number is an integer which is not a multiple of two. If it is "divided"

C Program code to Multiply two Matrices - Read elements in two matrices and multiply them. Matrix multiplication program in C. How to multiply matrices in C programming. Input elements in first matrix from user and...

Program convert UpperCase to LowerCase - C Programming code to convert upper case to lower case or lower case to upper case depending on the name it is invoked with as found in argument. Enter a string in upper...

C++ Prim's Algorithm Finds the Minimum - Find the minimum spanning tree of the given graph using Prims algorihtm. This algorithm is a "greedy algorithm" that finds a minimum spanning tree for a "Connected Undirected"

Solves Josephus Problem using Linked List - C Language Program to Solves the Josephus Problem using Linked List. Josephus Problem talks about a problem where there are people standing in circle waiting to be executed. The

C Code Reads two Strings & Concatenates - C program Read two strings and Concatenate them, without using library functions. Display the 'Concatenated String'. Take two strings as input and store them in the arrays string1 and