what are the various memory handling mechanisms in C ?
Answer Posted / santhi
thre are 3 memory handling mechanisms.they are
malloc,calloc,ralloc.
malloc:which allocates memory to a variable dynamically.
calloc:which allocates blocks of memory.
ralloc: which can be used to reallocation of memory incase
of unsufficient memory which is allocated earlier.
using "delete" we can free the memory allocated to a
variable.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
how to write optimum code to divide a 50 digit number with a 25 digit number??
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
Why can’t constant values be used to define an array’s initial size?
Describe the difference between = and == symbols in c programming?
Write a program to swap two numbers without using third variable in c?
What is a void * in c?
How are pointers declared in c?
I heard that you have to include stdio.h before calling printf. Why?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What should malloc() do?
What will be the outcome of the following conditional statement if the value of variable s is 10?
Write a code of a general series where the next element is the sum of last k terms.
What is c language in simple words?
write a program in c language to print your bio-data on the screen by using functions.
What is %d used for?