This code crashes when Sun CC is used to compile on Solaris platform. Anybody knows why? The place where the crash occurs is,
float aa = a->k;
Thanks.
Code:typedef struct { int i; int j; char c[13]; float k; } TRY; void donth() { int i; int k; char tempp; char tmp[100]; TRY* a = (TRY *)tmp; float aa = a->k; } int main() { donth(); return 0; }