answersLogoWhite

0

What malloc stands for in c language?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

My poing of view,

By seeing the History of C language, We have the history has follows

1. Basic language like ALGOL and COBOL---------------------1960's

2. BCPL-Basic Control Programming Language-----------1970's

3.BCPL was abbreviated as B.

In all the above three languages (I may miss some more languages)

there was some lot of limitations there...(like portability,reliability,machine dependent)

To overcome those limitations...i.e... B Tends to "C"( named by Dennis Ritchie),has many powerful features, which was not present in the early languages... Also C means U 'see'...

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Memory Allocation

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What malloc stands for in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How does the free function work in c language?

free() marks the memory locations as available for malloc().


Is it True malloc function allocates a single block of storage space and sets all bytes to zero in C programming language?

The first part is true (malloc allocates a single block of storage) but the second part is not. Malloc is for allocating un-initialized memory. calloc initializes all bytes to 0.


What is SYNTAX of malloc and calloc in C language?

int *p = (int*) malloc (n*sizeof(int*)); where n is the number of units you wish to allocate. Always remember to check the result of a malloc operation before continuing to avoid issues arising from lack of available memory. For example, if (p!=NULL) ... // code segment


Max memory allocated by malloc in c?

Memory is allocated by malloc from the heap.... so max mem = size of heap that is free...


What does malloc return in C and C plus plus?

Address of the allocated area, or NULL.


Comparison of C' malloc and free functions with c new and delete operators?

Hi, The difference between new and malloc: 1.The New is a operator however malloc is a function 2.New returns the object type and there is no typecasting required. In malloc type casting should be done as it returns a void*. 3. The new operator can be overloaded however there is no over loading in C and hence Malloc can not be overloaded. 4. Operater New asks for the number of objects to be allocated however in malloc it will ask you for the number of bytes to be allocated. 5. The New operater will return you a exception of memory is not available however in malloc it will return u a NULL. 6. New is a concept for dynamically allocation in OOPS(C++) however malloc is used in C. The difference between the delete and free is as follows: 1. delete is a operator and can be overloaded however free is a function and can not be overloaded. With Regards, Shashiraja Shastry


How to overload the new and delete operators to provide custom dynamic allocation of memory?

You don't. Remember that C++ is a superset of the C language. You can still use the old malloc/free functions to perform your own memory allocation/deletion.


What is library function in C programming?

printf, fgets, strlen, malloc etc


In c-shape language shape stands for?

In C-Sharp (C#), the sharp stands for: ++ ++ Which would looks like a pound sign. Which indicates a sharp in musical notation. This is to pay hommage to C++ and show it's ancestry (e.g., C was the predecessor of C++)


List of command used in c language?

It's easy: there are no commands in C, but a few statements (such as: expression, if, else, switch, while, do-while, for, break, continue, return and goto), and countless library functions (like printf, malloc and fopen).


Which Program that will run in C but not in C plus plus?

void main() { int *x = malloc(sizeof(int) * 10); }


What is a malloc function in C programming with example?

The malloc() function is part of a class of functions that deal with the allocation of memory on the heap. int *a = malloc (sizeof (int) * 100); /* allocate 100 int's */ if (a == NULL) {...} /* deal with possible malloc failure */ /* use a, either as pointer or as array of 100 ints */ free (a); /* release memory back to the library */