In C++, when we declare a variable, we can do
A a;
Where A is a class name. But in some cases, we add "struct" before the class name.
struct sockaddr_in addr_serv;
Is the "struct" here necessary? why?
In C++, when we declare a variable, we can do
A a;
Where A is a class name. But in some cases, we add "struct" before the class name.
struct sockaddr_in addr_serv;
Is the "struct" here necessary? why?