Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What does nil mean in c?

1267


What is malloc and calloc?

1058


What is getch() function?

1071


What is sizeof array?

1060


how do you execute a c program in unix.

1115


What are identifiers c?

1091


Difference between macros and inline functions? Can a function be forced as inline?

1277


Explain the difference between malloc() and calloc() function?

1057


Process by which one bit pattern in to another by bit wise operation is?

1168


What are the storage classes in C?

1160


What is signed and unsigned?

1067


What is a protocol in c?

1010


Which is better malloc or calloc?

1105


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

2052


Why can’t we compare structures?

1276