• C

Information on Structs


I have a multi file project where I have 3 structs.

Is it possible to have something like the following

Struct Date
int day;
int month;
int year;
Struct Record
Date aDate;// and have this as a valid part of this struct
string whatever;
string whatever;
I have a program where I need to specify a date variable in a different struct as above.

Who is Participating?
efnConnect With a Mentor Commented:
Yes, you can certainly do this.  It's a standard data structuring technique.
KazITAuthor Commented:
thanks efn....the points are yours.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.