Code: Select all
...
typedef struct {
char *Name;
tClass *Classes;
int ClassCount;
} tNamespace;
...
tNamespace gaCommonNamespaces[] = {
{"Stdlib", gaCommonClasses_Stdlib, sizeof(gaCommonClasses_Stdlib)/sizeof(tClass)},
{"System", gaCommonClasses_System, sizeof(gaCommonClasses_System)/sizeof(tClass)}
};
..
Code: Select all
printf("String Pointer address = 0x%x\n", gaCommonNamespaces[0].Name);
Does anyone know why this happens?