Hi guys,
I want to cast two pointers as follows:
(with the assumption that the memory has properly been allocated to both integer pointers)
insertHow are the data in b arranged ? (like this: {2, 1, 3, 3, 4, 7})Code:/* if the data stored in a are as follows */ int (*a)[3] = {{2,1,3}, {3,4,7}}; /* then I want to cast to an int scalar pointer */ int *b = (int *) a;
In contrast, if I want to cast from b back to a, how are the data in a then arranged?
Thank you in advance
Komkamol



LinkBack URL
About LinkBacks



