The code is:
struct { int number; char symbol; } something[5]; something[0].number = 28; int *pointer = &something[0]; printf("%i", pointer -> number); The last line causes the error request for member 'number' in something not a structure or union .
Tried (*pointer).number - the same error. What could be her reason?
int *pointer = &something[0];- this is nonsense. Do not ignore compiler messages. - AnT