What's the difference between calloc() and malloc()?
Answer Posted / bhaswati
malloc allocates m bytes means it takes one arguments.but calloc allocate m times n bytes and initialized the memory location to zero.it takes two arguments.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the process of converting a Tree into a Binary Tree.
how to print the character with maximum occurence and print that number of occurence too in a string given ?
How can I implement sets or arrays of bits?
What is difference between constant pointer and constant variable?
Write a program to swap two numbers without using third variable in c?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is the purpose of the statement: strcat (S2, S1)?
What is a ternary operator in c?
Write the control statements in C language
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What is the Purpose of 'extern' keyword in a function declaration?
What is identifier in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is return in c programming?
write a program to find out prime number using sieve case?