+ 2
Free memory in C Programming
How can I free memory of an array of pointers without knowing the size of the array? For example: char *planet[]
4 Answers
+ 3
thank you Coder Kitten
+ 2
The array is used as parameter for a function. Thanks all, I solved the problem by using pointer to pointer to traverse though the array. Martin Taylor Coder Kitten
0
Thanks 🌹 for the Help
0
char **planets;
planets = malloc(sizeof(char*) * 8);
this function is use for the memory of numbers in c.
Hot today
Python — File Handling
2 Votes
Help me
0 Votes
What’s wrong?
2 Votes
Question is write a c program to print prime numbers up to n and print the largest number in array.
1 Votes
Achievements on Sololearn
1 Votes
How to draw in the console?
0 Votes