WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / vijay r15
malloc creates the
single block of gn
size by user. Malloc
takes 1ly 1 arg.
Calloc creates
multiple block of gn
size. It will
initialize the
reserved memory block
to zero. Calloc takes
2 arguments
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Is a pointer a kind of array?
What is the significance of an algorithm to C programming?
Why do we use stdio h and conio h?
Explain how does flowchart help in writing a program?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Is sizeof a keyword in c?
What is the difference between text and binary modes?
What is wrong in this statement?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
write a program to generate address labels using structures?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
Is it possible to initialize a variable at the time it was declared?
Why can't I perform arithmetic on a void* pointer?
What is time null in c?