struct
{
int integer;
float real;
}
first_structure;
So we can refer to a member of the first_structure by writing
first_structure.integer = 7
If I write:
struct two_numbers
{
int integer;
float real;
}
first_structure;
then I can use the tag *two_numbers* to create a second structure like this:
struct two_numbers second_structure;
I also understand that typedef can be used to create synonyms.
But I am unable to understand the code below (from the page http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocObjectsClasses.html):
typedef struct objc_class *Class;
typedef struct objc_object {
Class isa;
} *id;
Every object thus has an isa variable that tells it of what class it is an instance.
HOW can it tell???? Please guide me through the meaning of this code.
Thank you.