It creates an array in C, What happen when come out of the program in the memory? -


i have doubt, supose have array 1 billion of elements , create array follows:

int array[1000] = {1,2, ..., n.} 

and finish program.

not being java machine java garbage collection memory clean records stored of arrangement. they stay in memory or released?

when process exits, operating system frees memory process using.

(this not apply small embedded operating systems.)


Comments

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -