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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -