where does malloc() function get the memory?



where does malloc() function get the memory?..

Answer / saravanan

From the heap memory of the process

Is This Answer Correct ?    10 Yes 0 No

Post New Answer

More C Interview Questions

#include<string.h> void main() { String s1[]={"swathi"}; string s2[]={"maddimsetti"}; s1[]=s[]; printf("%s",s1[]); }

3 Answers   IBM,


What is wrong with this declaration?

0 Answers  


What is the advantage of c?

0 Answers  


What does d mean?

0 Answers  


how to write a data 10 in address location 0x2000

3 Answers  






What does void main () mean?

0 Answers  


What are the commands should be given before weiting C Program i.e, Cd.. like

4 Answers   IBM, Infonet, Satyam, Tech Mahindra,


printf("%d",(printf("Hello")); What it returns?

32 Answers   TCS,


To what value do nonglobal variables default? 1) auto 2) register 3) static

4 Answers  


Write a program for Overriding.

0 Answers  


Why doesnt long int work?

0 Answers  


When should we use pointers in a c program?

0 Answers  


Categories