struct struct1
{
};
//and
struct
{
}struct1;
Struct and class Definitions
The first one declares a struct type named struct1. The second one declares an instance of an anonymous struct type named struct1.
Yes, but I don't really recommend it. It's usually better to separate defining the type and defining instances.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement