Original Post
I have a struct with a bunch of variables in it. I want to be able to assign either a float, int, bool or a char array to a variable in my struct. Is there a way I can have it so that I only have to have one variable to hold either the float, int, bool or char array instead of having one of each type and only using one of them? I read something about void pointers somewhere from google, I tried to use void pointers but I couldn't get it to work.