Making assumptions about how variables will be stored in memory is a very dubious practice. Just delare an array of your structs. You should know at compile time how many there are and you can iterate through them looking for the named variable without any need for a pointer.
While you're at it, you'll need to give your name array a size too.