Question: #include #include void bubbleSort ( char arr [ ] [ 5 0 ] , int n ) { for ( int i = 0 ;
#include
#include
void bubbleSortchar arr int n
for int i ; i n ; i
for int j ; j n i ; j
if strcmparrj arrj
Swap arrj and arrj
char temp;
strcpytemp arrj;
strcpyarrj arrj ;
strcpyarrj temp;
int main
int n;
printfEnter the number of students: ;
scanfd &n;
char studentNamesn;
Input student names
for int i ; i n; i
printfEnter name of student d: i ;
scanfs studentNamesi;
Sort the array of student names
bubbleSortstudentNames n;
Display the sorted list
printf
Sorted list of students:
;
for int i ; i n; i
printfs
studentNamesi;
return ;
draw A flowchart for this c code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
