Why is malloc used?



Why is malloc used?..

Answer / saipriya

To allocate the memory

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Can you think of a way when a program crashed before reaching main? If yes how?

2 Answers  


why integer range between -327680to+32767

2 Answers  


How many types of operator or there in c?

0 Answers  


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

5 Answers   Vector, Vector Solutions,


c program for searching a student details among 10 student details

0 Answers  






Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.

2 Answers   Infosys,


what is the advantage of software development

1 Answers  


What is the use of function in c?

0 Answers  


write a c program to print "Welcome" without using semicolon in the whole program ??

15 Answers   Infosys, TCS,


Write a program to swap two numbers without using a temporary variable?

0 Answers   Infosys,


main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }

6 Answers  


What is an volatile variable?

15 Answers   HP,


Categories