These lines:

typedef char *(*my_type)(const char *, int);
my_type some = index;
fprintf(stderr,"sizeof(index): %lu\n", sizeof(index));
fprintf(stderr,"sizeof(some): %lu\n", sizeof(some));

produce:

sizeof(index): 1
sizeof(some): 8

This is x86_64 so the pointer-size should be 8 bytes. But why is the size of 
index = 1?

Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to