typedefstruct
{
string name;
int votes;
bool eliminated;
}
Unable to figure out the purpose of typedef struct.
All I see is it has defined a variable named name as string type, votes as int type, and eliminated as bool type. The same could have been done without typedef struct.