For example, can I take
int array[12];
and cast it to a char[48] simply by casting the pointer, and given the assumption that int is 4 bytes on my machine? What would be the proper syntax for this, and would it apply generally?
I understand that the size of the new array wouldn't be explicit, i.e. I'd have to do the division myself, again, knowing that on my machine int is 4 bytes.
int array[12](48 bytes on your platform) tochar array[3](3 bytes)? Or did you mix up the array bounds?