Can anyone tell me why, if the following code is legal, in lcc the first initialization is performed well, but the second one not ?
int a= 1; int adress_of_a= (int) &a;
---> this works fine, adress_of_a is initialized with 0x0040....
int a= 1; int adress_of_a[1]= { (int) &a };
---> this does not work, adress_of_a is initialized with 00000000.
Thank you for your reply !
Lucien MATHAY
int a= 1; int adress_of_a= (int) &a;
---> this works fine, adress_of_a is initialized with 0x0040....
int a= 1; int adress_of_a[1]= { (int) &a };
---> this does not work, adress_of_a is initialized with 00000000.
Thank you for your reply !
Lucien MATHAY
Comment