Hello,
I have a question about those code snippets below.
Sample A:
Sample B:Code:for(int i=0; i<getSomeLenght(); i++) { // Some code here }
Is Sample A presumably occupying more memory resources than Sample B? Or is there any difference at all?Code:int len = getSomeLenght(); for(int i=0; i<len; i++) { // Some code here }