Is it possible to do something like this on the C language:
class A
{
public:
int x;
int y;
};
class B : public A
{
public:
int w;
int h;
};
void func(A a)
{
//Do something here
}
int main()
{
B b;
func(b);
return 0;
}
in C with structures? And how should I implement it?