in structures can we swap two structure variables as such?like for example:
say i create a structure called book and i want to arrange the books in ascending order depending on the book name.i.e.,the contents like price and the number of pages should get swapped along with the name:
struct book
{
char name[10];
char author[10];
int pages;
float price;
}b[20];
here i am asking if we can swap b[1] as such along with its contents with b[3],instead of going variable by variable: b[1].name with b[3].name