What is the difference between malloc() and realloc()?

Answers were Sorted based on User's Feedback



What is the difference between malloc() and realloc()?..

Answer / nashiinformaticssolutions

• malloc(): Allocates memory.
• realloc(): Resizes an already allocated memory block, preserving existing data if possible.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between malloc() and realloc()?..

Answer / 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

More C Interview Questions

Write the control statements in C language

0 Answers   Atos Origin,


Tell about strtok & strstr functions

2 Answers   HCL, iFlex, Motorola,


Three major criteria of scheduling.

1 Answers  


write a c code "if you give a any decimal number then print that number in english alphabet"? ex: i/p: 552 o/p: five hundred fifty two ...

1 Answers   Philips,


Find the highest of three numbers and print them using ascending orders?

1 Answers  


how to find greatet of 10 numbers without using array?

4 Answers  


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

0 Answers  


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

0 Answers   RBI,


how to print this pyramid * * * * * * * * * * * * *

2 Answers  


create a C program that displays one z,two y's,three x's until twenty six A's. plzz answer i need it tomorrow.

4 Answers  


write a program in C to swap two variables

7 Answers   Attrabyte, Marlabs,


How important is structure in life?

0 Answers  


Categories