Tool/software: TI C/C++ Compiler
Hi,
I have a global structure declared as
struct Data{
int userdata[5];
char name;
};
I have created an object for the structure as : struct Data Mytime , LAinfo ;
When the program runs initially when i print the values of Mytime.userdata[0] , it prints a garbage value of 15528 . This garbage value occurs every time until later on when I initialize the array elements.
This does not seem to be the problem with the other structure objects such as LAinfo.userdata[0] .
Kindly let me know what is causing this garbage value to be stored in only one of the structure variables and not all.
Also, as per general information I believed that global variables are initialized to 0 be default.
Thank you