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
How many identifiers are there in c?
What are the types of i/o functions?
How can I pad a string to a known length?
What is a volatile keyword in c?
When should the const modifier be used?
Where define directive used?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What is malloc return c?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What is volatile, register definition in C
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
When is a void pointer used?
What are different types of pointers?
Why we use void main in c?
What is the difference between strcpy() and memcpy() function in c programming?