Hello,

I have a question about those code snippets below.

Sample A:
Code:
for(int i=0; i<getSomeLenght(); i++) {
    // Some code here
}
Sample B:
Code:
int len = getSomeLenght();

for(int i=0; i<len; i++) {
    // Some code here
}
Is Sample A presumably occupying more memory resources than Sample B? Or is there any difference at all?