I wanted to ask, if I had a struct which looked like this:
Is the example correct? how can i get to int data3 without using the . or -> operator?Code:typedef struct types { char *data1; int *data2; int data3 }type; int main(....) { type a; type *temp = NULL; temp = &a + 1 *sizeof(char*) + 1*sizeof(int*); ...... }