Did function take any space in the memory? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Did function take any space in the memory?

Asking in the reference of void functions

2nd Dec 2022, 12:30 PM
Ayush Katiyar
Ayush Katiyar - avatar
1 Answer
0
Ofc they are it dosent matter if has a return value or not your whole code get compiled in bytetext and are saved on the memory. Thats the reason why you need a garbage collection or why Buffer Overflows can be done. Hope that help you Happy coding 😉✌️
4th Dec 2022, 12:06 PM
S3R43o3
S3R43o3 - avatar