program size question
Which of the following code will result in max. exe size, or to be more appropriate, which of the following codes will occupy greates and least memories when running:
(1) int arr;
static in arr;
I think that at least (1) and (3) should require same memory on runtime beacuse in both cases the varilable are stored on the Data Segment. But which is greatest and least, or will all of them require same amount of memory?