What is the difference between calloc() and realloc()?
Answer Posted / nashiinformaticssolutions
calloc() allocates memory and initializes it to zero.
realloc() resizes previously allocated memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Apart from dennis ritchie who the other person who contributed in design of c language.
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What is the size of empty structure in c?
Write a program on swapping (100, 50)
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Explain the difference between the local variable and global variable in c?
What is the best way to comment out a section of code that contains comments?
What are reserved words with a programming language?
What is the function of volatile in c language?
Is it possible to pass an entire structure to functions?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
How can I write functions that take a variable number of arguments?
Explain what are the advantages and disadvantages of a heap?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
How do you determine whether to use a stream function or a low-level function?