bubble sort on array of c structures not sorting properly
- by xmpirate
I have the following program for books record and I want to sort the records on name of book. the code isn't showing any error but it's not sorting all the records.
#include "stdio.h"
#include "string.h"
#define SIZE 5
struct books{ //define struct
char name[100],author[100];
int…