adspace


what's the return value of malloc()

Answer Posted / shashidhar murthy

malloc returns a pointer to the allocated space if required
memory is found, else, a null pointer is returned and
'errno' is set to indicate the error.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dynamic dispatch in c++?

1142


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2742


will u please send me the placement papers to my mail???????????????????

1935


Do you know the difference between malloc() and calloc() function?

1144


How do you convert strings to numbers in C?

1351


How can I implement sets or arrays of bits?

1129


How do you determine the length of a string value that was stored in a variable?

1209


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

1187


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1363


write a c program to find the sum of five entered numbers using an array named number

2259


i have a written test for microland please give me test pattern

2816


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1306


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2267


What are compound statements?

1298


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1625