free dynamic allocation
how to know if this memory is freed in c ex: int *p=malloc(sizeof(int)); free(p); after that how to know if this memory is freed
its definitely free, but if you have a doubt, just use an if statement to check if the value of the pointer is NULL then the memory is freed, i guess you know how to do that edit: am not sure they is a way to check this, but after freeing the pointer you can assign the pointer to NULL
p will not be null after free call because I pass p by value so p will not affected
Python — File Handling
Help me solve this (using loop)
What is wrong? Error on test.
Help me wiht python
Question is write a c program to print prime numbers up to n and print the largest number in array.