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
Explain spaghetti programming?
What is a macro, and explain how do you use it?
what do the 'c' and 'v' in argc and argv stand for?
Mention four important string handling functions in c languages .
Is null always equal to 0(zero)?
How can type-insensitive macros be created?
What is #include stdlib h?
Place the #include statement must be written in the program?
What is the purpose of ftell?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What are nested functions in c?
What is structure pointer in c?
What is the data segment that is followed by c?
What is the function of multilevel pointer in c?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?