Tag: array
Array in ascending order in C
Array in ascending order in C
Problem statement
Given an array, sort in ascending order.
Solution
Use two for loops, Outer for loop for preserving index and the...
Queue Implementation using Array
Queue Implementation using Array
// C Program to Implement a Queue using an Array
#include <stdio.h>
#include <stdlib.h>
#define MAX 20
void insert();
void delete ();
void display();
int queue_array;
int rear =...
C program to Find the Sum of two Matrices
C program to Find the Sum of two Matrices
Problem Statement: Given two multi-dimensional arrays, also called as matrices, find their Sum.
// C program to...
Print Inversions in an array in C
Print Inversions in an array in C
Problem statement: Print Inversions in an array. In an array two elements a and a form an inversion...
Arrange data in alphabetical order in C
Arrange student data in alphabetical order in C
Problem Statement: Arrange student data in alphabetical order in C
Student struct is used as a user-defined data...