How does free() know how many bytes to free?

Answer Posted / suchita

frees a block allocated with malloc()

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static and auto variables in c?

555


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1629


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

1612


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

629


How is a macro different from a function?

652






What is array in C

701


What are the types of functions in c?

567


I heard that you have to include stdio.h before calling printf. Why?

582


explain what is fifo?

630


What is 2 d array in c?

544


What is the difference between text and binary i/o?

586


Explain how does free() know explain how much memory to release?

569


List out few of the applications that make use of Multilinked Structures?

1284


What is the best organizational structure?

636


Can you write the function prototype, definition and mention the other requirements.

652