What is the use of structure having only one element?
Example:
struct dummy
{
int var;
};
Why structures like this are used? Mostly I have seen them in some header
files.
The atomic_t type is also defined like this. Can't it be defined simply
using:
typedef int atomic_t;
No comments:
Post a Comment