What is a memory leak? How to avoid it?
Memory leak occurs when programmers create a memory in heap and forget to delete it. ... To avoid memory leaks, memory allocated on heap should always be freed when no longer needed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain which function in c can be used to append a string to another string?
how to find a 5th bit is set in c program
What is extern variable in c with example?
what is structuer?
What is the difference between scanf and fscanf?
What is const and volatile in c?
Program to find the absolute value of given integer using Conditional Operators
what is the different bitween abap and abap-hr?
write a program in c to read array check element is present or not?
What is the use of the restrict keyword?
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.
How will you allocate memory to double a pointer?