+ 1
Struct type name be the same as what its called?
Can a struct be like this: struct object { int var; }object; I wont have issues with calling the struct? Can I just g ahead and use object.var?
2 Réponses
+ 1
yes this is a write way to create structure objects.
another way to create objects is:
struct object obj;
obj. var=10;
like this you can create multiple struct object in your program.
0
Thanks you!