how to iterate through the members of a struct which are of different types.?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iamuser1
    New Member
    • Nov 2013
    • 1

    #1

    how to iterate through the members of a struct which are of different types.?

    for ex i have a struct

    struct emp
    {
    char name[20];
    int age;
    char address[30];
    }

    how i can iterate through the all members of emp structure. ? if i have some values to assign to alll members of struct, how i can do ?
Working...