What is the difference between malloc() and realloc()?
Answer Posted / glibwaresoftsolutions
• malloc(): Allocates memory.
• realloc(): Resizes an already allocated memory block, preserving existing data if possible.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is pointer and structure in c?
What are the __date__ and __time__ preprocessor commands?
How can I write functions that take a variable number of arguments?
What are header files in c programming?
Explain 'bus error'?
What is the difference between mpi and openmp?
What are the different types of control structures in programming?
What are bitwise shift operators in c programming?
What is the use of a semicolon (;) at the end of every program statement?
What is the data segment that is followed by c?
What is meant by gets in c?
What are the applications of c language?
What is the significance of scope resolution operator?
Is it acceptable to declare/define a variable in a c header?
Why static variable is used in c?