If I have a structure containing an array of structures.... and on
config.data.item[3].userFunction();
is it better to access with
itemType * item = &config.data.item;
item[3].userFunction();
item[4].userFunction();
or is this just the same as
config.data.item[3].userFunction();
config.data.item[4].userFunction();
Or is there a limit to the number of levels where efficiency is lost, and does compiler optimisation have any effect?
Many thanks in advance for any insight offered.