Is any variable or container in c which contain more than one data type

Is any variable or container in c which contain more than one data type. vector, map etc contain only one data type but how more than one data type, if no nay then how it will solve
There are many ways to do this.

You could put all the data you want into a structure.

1
2
3
4
5
6
struct data
{
  int a;
  float b;
  char* z;
}


then make a container of those structs

vector<data> newVector;
See polymorphism.
Did I horrifically misunderstand the question there? Oops. :)
Topic archived. No new replies allowed.