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 the explanation for modular programming?
What are the key features in c programming language?
What is calloc() function?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What are extern variables in c?
Find MAXIMUM of three distinct integers using a single C statement
what do you mean by enumeration constant?
What does void main () mean?
What is preprocessor with example?
What is the size of structure in c?
How can I implement a delay, or time a users response, with sub-second resolution?
What are the two types of functions in c?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.