So if I were to use a variable dog1.breed, it would give me a char, right? But what would happen if I used dog2.size? How does that work? And what if I use three, like dog1.size.weight? Would it make a difference that size and weight are under different structs?
So if I were to use a variable dog1.breed, it would give me a char, right?
yes
But what would happen if I used dog2.size?
will give you a DogSize.
and what if I use three, like dog1.size.weight?
will give you a float
in a struct you simply group different datatypes under 1 name. think of the struct you created as of a datatype, just like int, char, ...
so if you use DogSize in your 2nd struct you basically use your own datatype DogSize there, the same way you would use int, char, ...