What is the difference between malloc() and calloc()?
Answer Posted / hr@tgksolutions.com
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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:
Explain how do you list files in a directory?
What is the acronym for ansi?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is difference between Structure and Unions?
explain how do you use macro?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What are the different file extensions involved when programming in C?
What is echo in c programming?
What is a #include preprocessor?
How can you draw circles in C?
What are linked lists in c?
What is the use of structure padding in c?
What is dynamic dispatch in c++?
Did c have any year 2000 problems?