# C Program

## C Program to Find Grade of a Student using Function

Write a C Program to Find Grade of a Student using Function. To solve this problem we can use switch case or if-else statements. The below table shows the grading system. Score in subject Grade >=90 A 80-89 B 70-79 C 60-69 D 50-59 E <50 F Prerequisites for finding grade of a student using …

## C Program to Find Grade of a Student Using If Else

C Program to Find Grade of a Student Using If Else statement | The if-else statement in C is a selection statement. When dealing with selection statements, there are generally three versions: one-way, two-way, and multi-way. One way decision statements do a particular thing or they do not. Two-way decision statements can do one thing …

## Top 30+ Array Example in C

Array example in C programming language with code and output. An array is a variable that can store multiple values.  C Example on Single dimensional Array 1) Find Length of Array in C:- Write the C program to find the length of the given array and use this length value to display the array. Examples:- Array …

## Row Sum and Column Sum of a Matrix in C

Row Sum and Column Sum of a Matrix in C. Previously we had developed multiple C program on matrix like C program to find the Addition of two Matrix, C program to find subtraction of two matrices, C Program to Find Multiplication of two Matrix, C program to Find Transpose of a Matrix, Sum of …

## Take and Print Matrix in C

How to take and print matrix in C? How to Print two dimensional or 2D array in C? The 2D array represents a matrix. To print two dimensional or 2D array in C, we need to use two loops in the nested forms. The loops can be either for loop, while loop, do-while loop, or …

## Merge Two Sorted Arrays in C

How to merge two sorted arrays in the C programming language? We have two sorted arrays and merge them in ascending order. For this, we need to insert each element at the appropriate position. Example1 of merging of two int arrays in ascending order,Array1 = { 9, 18, 27, 36, 45 }Array2 = { 10, …

## Merge Two Arrays in C

How to merge two arrays in the C programming language. To perform merge operations we need to know how to copy an array in C. Merge Two Arrays in C Without Sorting Example of merging of two int arrays,Array1 = {10, 20, 30, 40, 50}Array2 = {9, 18, 27, 36, 45}Then the Result should be,Merged …

## Find Duplicate Elements in Array in C

How to find duplicate elements in an array in the C programming language? To solve this problem we have to check every element with others. Also See:- Count Repeated Elements in Array in C Example1:- Unsorted array example,Array = { 50, 20, 10, 40, 20, 10, 10, 60, 30, 70 };Repeated elements are: 20 10 …

## Count Repeated Elements in Array in C

How to count repeated elements in an array in the C programming language? To solve this problem we have to check every element of the array with others.  Example1:- Unsorted array example,Array = { 50, 20, 10, 40, 20, 10, 10, 60, 30, 70 };The number of Repeated elements are = 2Repeated elements are: 20 …