Spanish: ĀæComo puedo saber si tengo un espacio de memoria sin liberar?. English: How can I know if I have a memory space withou | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Spanish: ĀæComo puedo saber si tengo un espacio de memoria sin liberar?. English: How can I know if I have a memory space withou

Spanish(){ Tengo un programa que hace uso del head para almacenar una cadena dinamica. Pero me viene la pregunta de que si he liberado esa parte de memoria o tengo fuga de memoria. ĀæComo puedo saber si tengo memoria sin liberar en mi cĆ³digo C?. } English(){ I have a program that uses head to store a dynamic string. But the question comes to me as to whether I have freed that part of memory or have a memory leak. How can I tell if I have unreleased memory in my C code? }

18th Mar 2021, 6:01 PM
Daniel BriceƱo
Daniel BriceƱo - avatar
4 Respostas
+ 1
Most IDE'S have tools or plugins that you can use to check memory usage etc. You'd need to find this info for the IDE that you're using and learn how to use the tool. You can usually Google it and find some tutorials and YouTube videos.
18th Mar 2021, 6:18 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Thank you very much I will try. ChaoticDawg
18th Mar 2021, 6:28 PM
Daniel BriceƱo
Daniel BriceƱo - avatar
0
..... ChaoticDawg I do not know if I asked the correct question, but in google I did not get anything. Only explanation of the dynamic memory and nothing else.
18th Mar 2021, 6:21 PM
Daniel BriceƱo
Daniel BriceƱo - avatar
0
Google 'C check for memory leaks' I find plenty of info and different tools etc with that search.
18th Mar 2021, 6:25 PM
ChaoticDawg
ChaoticDawg - avatar