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; *p = malloc(10);"?

Answer Posted / parasher

char *p;

p = (char *)malloc(sizeof(char));

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between array and pointer in c?

1026


Is array a primitive data type in c?

1000


int far *near * p; means

3504


Write a function that will take in a phone number and output all possible alphabetical combinations

997


What is malloc calloc and realloc in c?

1215


What is the difference between far and near in c?

996


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

3205


What does p mean in physics?

988


what is stack , heap ,code segment,and data segment

2632


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1009


What is %lu in c?

1180


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1710


Explain how do you generate random numbers in c?

1042


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1047


What is the use of a semicolon (;) at the end of every program statement?

1410