WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / nazia wasim
malloc and calloc both are used to allocate
memory dynamically but the difference is
malloc allocates single block of memory and
calloc allocates multiple block of memory as
per the requirement.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain pointers in c programming?
When should the volatile modifier be used?
about c language
Why is structure padding done in c?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What are preprocessor directives in c?
Why can’t constant values be used to define an array’s initial size?
Are bit fields portable?
What is a constant and types of constants in c?
can we change the default calling convention in c if yes than how.........?
Explain about block scope in c?
When c language was developed?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is the difference between local variable and global variable in c?