It?s easier for a C compiler to generate good code for pointers than for subscripts.
Array subscripts are ultimately resolved into pointer form. Like a[i] -> *(a+i). So the pointer form is always better.
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
Copyright ©2003-2010 CoolInterview.com, All Rights Reserved. Privacy Policy | Terms and Conditions Page URL: http://www.coolinterview.com/interview/985/default.asp?cachecommand=bypass