WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / shruti
malloc will only allocate space in the memory..
calloc will allocate space in the memory as well as
initialise it to a particular value.
Is This Answer Correct ? | 134 Yes | 39 No |
Post New Answer View All Answers
How can I manipulate strings of multibyte characters?
Why is void main used?
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 does it mean when a pointer is used in an if statement?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is the meaning of 2d in c?
What is a program flowchart and explain how does it help in writing a program?
Where we use clrscr in c?
Explain what are linked list?
How can I split up a string into whitespace-separated fields?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
What does dm mean sexually?
What are the disadvantages of c language?
Where static variables are stored in c?