I'm going through someone else's code and came across the following syntax:
typedef struct abc {
   abc() : member(0){}
   unsigned int member
}
It seems like a class with member variable and a constructor, except it is declared struct. I have two questions here.
- Is this syntax supported in C?
- What would be a reason to use structs over classes?
Thanks a lot in advance.
PS: how do I format the code?
 
     
     
     
     
     
    