Suppose I have some kind of structure:
will there be any difference in the execution time of this code:Code:typedef struct MyStruct { int a; }
and this code:Code:MyStruct* msp; msp = new MyStruct;
and if there is, how significant will it be?Code:MyStruct ms;
And a related question: which (if either) of these will be faster - this:
or this:Code:msp->a = 5;
Thanks.Code:MyStruct& msr = &ms; ms.a = 5;