I have structure. I am storing data in the below structure. But for some reason I would like to Print/Get Information of the Element of the EMPdata structure.
In other words I would like to PRINT the name of the elements of the Structure e.g. as below
empid
empname
dept
date_join
Can we do it in "C" ?
Share your views.
Code:
typedef struct { int empid; char empname[100]; int dept; char date_join[15]; } EMPdata;
empid
empname
dept
date_join
Can we do it in "C" ?
Share your views.
Comment