Answers for "c struct implement other struct"

C
1

how to put a struct in another struct C

struct B {  // <-- declare before
  int number;
};
struct A {
 int data;
 B b; // <--- declare data member of `B`
 };
Posted by: Guest on May-08-2020

Code answers related to "C"

Browse Popular Code Answers by Language