WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / naresh guguloth(iiit,basar)b09
malloc():-
-------
It is used to allocate memory for one variable only.
int*hi=(int*)malloc(sizeof(int));
calloc():-
It is used to allocate memory for any array.
int*bye=(int*)calloc(sizeof(int),10)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
difference between object file and executable file
What are the functions to open and close the file in c language?
about c language
Who is the main contributor in designing the c language after dennis ritchie?
How old is c programming language?
What is the explanation for modular programming?
Write a program to check prime number in c programming?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is the sizeof () a pointer?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Do you know null pointer?
Can you define which header file to include at compile time?
With the help of using classes, write a program to add two numbers.
What is operator precedence?
What is the function of this pointer?