Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
How not to destroy a variable when exiting a function? (not static)
For example: int spam(void){ int a[16]; return 42; } How to keep the `a' array undestroyed, but while each time the function is called, there get greated "a new array of size 16"?
1 Réponse
0
A non static variable is never destroyed until program execution finished.