kukurigu
Junior Member level 3

Programming question:
How to find the offset between different fields (ex. between 'rate' and 'rentee') without declaring an instance of the following C struct?
struct carrecord
{
char make[15];
float rate;
int mileage;
char rentee[25];
}cars[100];
How to find the offset between different fields (ex. between 'rate' and 'rentee') without declaring an instance of the following C struct?
struct carrecord
{
char make[15];
float rate;
int mileage;
char rentee[25];
}cars[100];