WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / datta khilari
1.malloc() takes one argument and allocates memory in a
bytes and return to the pointer.
1.calloc() takes two argument and allocates memory in a
blocks and return to the pointer.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is dynamic memory allocation?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
Which is best book for data structures in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
The file stdio.h, what does it contain?
Is there a way to compare two structure variables?
What is a pointer and how it is initialized?
write a program to rearrange the array such way that all even elements should come first and next come odd
What is the difference between formatted&unformatted i/o functions?
What is the heap in c?
When is a “switch” statement preferable over an “if” statement?
Is c weakly typed?
Write a factorial program using C.
Tell me about low level programming languages.
What are the data types present in c?