When you call malloc() to allocate memory for a local
pointer, do you have to explicitly free() it?

Answer Posted / guest

Yes you have to.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In c language can we compile a program without main() function?

567


What is the use of define in c?

588


formula to convert 2500mmh2o into m3/hr

489


What are the general description for loop statement and available loop types in c?

678


How can I change their mode to binary?

686






Which header file is essential for using strcmp function?

930


Why is event driven programming or procedural programming, better within specific scenario?

1947


Why is a semicolon (;) put at the end of every program statement?

618


What is structure data type in c?

562


Here is a good puzzle: how do you write a program which produces its own source code as output?

591


What are header files and explain what are its uses in c programming?

601


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2640


What is the difference between formatted&unformatted i/o functions?

608


Why does not c have an exponentiation operator?

620


What is a list in c?

610