What is the difference between malloc() and realloc()?
Answers were Sorted based on User's Feedback
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 |
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 |
What is structure padding ?
Can we declare function inside main?
Is c easier than java?
1.)how to find d most repeated word in a string? string ="how do you do"?? output should be do
1 Answers AAS, Nagarro, Vuram,
What is the difference between far and near in c?
how to swap four numbers without using fifth variable?
how to convert an char array to decimal array
#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }
What is wrong in this statement? scanf(“%d”,whatnumber);
What's the difference between a linked list and an array?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is void c?