By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,868 Members | 1,974 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,868 IT Pros & Developers. It's quick & easy.

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

P: 1
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 ?
Nov 28 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.