What is the difference between malloc() and calloc()?
Answer Posted / hr@tgksolutions.com
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we use any name in place of argv and argc as command line arguments?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
Explain built-in function?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What is the difference between mpi and openmp?
What do you mean by a local block?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
How many types of functions are there in c?
What are global variables?
What does the c preprocessor do?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What are the advantages of the functions?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is sizeof return in c?
Explain what is the difference between functions abs() and fabs()?