When you call malloc() to allocate memory for a local
pointer, do you have to explicitly free() it?
Answer Posted / guest
Yes you have to.
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What is typedef struct in c?
What 'lex' does?
What is a good way to implement complex numbers in c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
How can I invoke another program or command and trap its output?
What is c preprocessor mean?
What are variables and it what way is it different from constants?
What is c programming structure?
What would be an example of a structure analogous to structure c?
C program to find all possible outcomes of a dice?
When should a type cast be used?
What is a stream in c programming?
Explain what is a 'locale'?
What is n in c?
How can you find out how much memory is available?