how to put a struct in another struct C
snippet in c

how to put a struct in another struct C

user2520

struct B {  // <-- declare before
  int number;
};
struct A {
 int data;
 B b; // <--- declare data member of `B`
 };