Luxoft interview question

How is the int value stored? Int array? A pointer to integer array (array[i]) How is "i" variable stored?

Interview Answer

Anonymous

24 Jan 2017

Int values are stored in stack. Int array is stored in heap. "i" variable stored in a stack.

Luxoft Interview Question: How is the int value stored? Int array? A pointer to integer array (array[i]) How is "i" variable stored? | Glassdoor