What is malloc return c?



What is malloc return c?..

Answer / Zia Khan Lohani

"malloc() returns a pointer to the allocated memory if successful, and NULL otherwise.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Is c is a middle level language?

1 Answers  


2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value

3 Answers   Accenture,


Explain command-line arguments in C.

1 Answers  


How can I manipulate individual bits?

1 Answers  


List a few unconditional control statement in c.

1 Answers  


write a program to find the given number is prime or not

3 Answers   Accenture, Vasutech,


we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?

2 Answers  


What is bss in c?

1 Answers  


Can main () be called recursively?

1 Answers  


write a program to produce the following output; ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A

17 Answers   ABC, College School Exams Tests,


When should a type cast not be used?

1 Answers  


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1 Answers  


Categories