Answer Posted / sekhar
free takes the pointer variable as argument. The intial
data at that location holds a value of number of bytes that
pointer is pointing to. Based on that information, it frees
the memory.
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
What is page thrashing?
What are the types of data structures in c?
How does placing some code lines between the comment symbol help in debugging the code?
Write a program to swap two numbers without using the third variable?
What is the purpose of main() function?
What is an operator?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
What are the advantages of using linked list for tree construction?
How can I find out how much free space is available on disk?
Can math operations be performed on a void pointer?
Is it better to use malloc() or calloc()?
What is operator promotion?
When should volatile modifier be used?
What is the meaning of ?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;