const char *ObjectsTypes[] = {"LINE", "POINT", "CIRCLE"}; const char *circle = ObjectsTypes[2];
Am 12.11.2011 10:56, schrieb guruprasad rane:
Hi All I am very new to C. Need someone to help me with arrays in C.I want to create and array of object types. Say ObjectsTypes where index 0 should have string "LINE", index 1 should have string "PLINE" etcI should be able to us printf("Current Object is %s",ObjectsTypes[1]);