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...

What's wrong with "char *p = malloc(10);" ?

Answer Posted / splurgeop

malloc return an adress to the free memory..so we shud
store the adress i.e.
the above should be

char p=malloc(10);

Is This Answer Correct ?    1 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use strcmp?

1058


What is the difference between declaring a variable and defining a variable?

1255


What is the difference between constant pointer and constant variable?

1203


Explain do array subscripts always start with zero?

1214


Explain what is a pragma?

1030


What is the general form of a C program?

1014


What is bss in c?

1082


Is it possible to have a function as a parameter in another function?

1062


Why c is called procedure oriented language?

1028


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1954


What is the significance of c program algorithms?

1134


What is a macro in c preprocessor?

1087


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1062


When should a type cast be used?

999


What is wrong with this declaration?

1096