Free
SRON provides runtime memory management using 'free' attribute. 'free' allows you to deallocate a variable's memory space.
NOTE: After the variable is freed, it cannot be accessed anymore. But the memory will still be available to other variables if they own the same memory block.
Syntax:
Example:
OUTPUT:
NOTE: Use it wisely because if you try to access a variable after it was freed, then your program will suddenly exit with code 1.
Last updated