Data Structures Practical 7
Data Structures Practical 7 Question 1 Modify the bubble sort program to handle invalid input, such as non-string data or strings that exceed the maximum length. strbubblesort.c C #include <stdio.h> #include <conio.h> #include <string.h> #define MAX_STRINGS 100 #define MAX_LENGTH 10 void bubbleSortStrings(char arr[][MAX_LENGTH], int size) { int i, j; char temp[MAX_LENGTH]; for (i = 0;
Data Structures Practical 7 Read More »
