where does malloc() function get the memory?

Answer Posted / saravanan

From the heap memory of the process

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we compile a program without main() function?

628


What does == mean in texting?

659


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1836


What are valid operations on pointers?

662


What is function prototype in c language?

607






Explain how do you list files in a directory?

612


Write a program to print "hello world" without using a semicolon?

591


What does dm mean sexually?

806


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

726


What is a void * in c?

589


How can I remove the trailing spaces from a string?

608


What is an lvalue in c?

690


How can a program be made to print the line number where an error occurs?

645


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1838


When should we use pointers in a c program?

626