what are the various memory handling mechanisms in C ?

Answer Posted / henry

malloc(), calloc(), ralloc() are all for allocating memory.
free() is for freeing memory.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should a type cast not be used?

616


What do you mean by command line argument?

632


How can I implement sets or arrays of bits?

594


What is wrong with this statement? Myname = 'robin';

806


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2710






How can I get random integers in a certain range?

604


Why static variable is used in c?

542


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.

2670


Can you write the algorithm for Queue?

1538


What is the c value paradox and how is it explained?

565


How would you rename a function in C?

606


Is c is a procedural language?

584


Which one would you prefer - a macro or a function?

590


Is c dynamically typed?

659


What is line in c preprocessor?

604