I'm learning C and currently, structures. I'm looking at the following code:
struct client {
char name[20];
int key;
int index;
};
struct client Client[100];
int function(void *ClientDetail) {
struct client *clientDetail = (struct client*) ClientDetail; // what is this line doing?
}
could you please explaint the importance of the commented line?
Thanks