Answers for "nested structure in 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
0

nested structure in c

struct address   
{  
    char city[20];  
    int pin;  
    char phone[14];  
};  
struct employee  
{  
    char name[20];  
    struct address add;  
};  
Posted by: Guest on October-17-2021
0

Structure of Structs in c

The basic structure
Posted by: Guest on October-16-2020

Browse Popular Code Answers by Language