answersLogoWhite

0

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.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is name for memory is a concept in which the operating system allocates a portion of a storage medium to function as additional RAM?

It is commonly called "virtual memory".


What is the calloc function in C programming?

calloc is memory allocation function that is normally used for requesting memory space at run time 4 storing data types such as arrays and structures. calloc allocates multiple blocks of storage, each of the same size and then sets all bytes to zero, and then returns a pointer to the memory.


What is email storage?

The storage space that the e-mail service provider allocates for an account.


What allocates system resources manages storage space and maintains security?

An operating system


Translating an algorithm into a programming language is called?

Translating an algorithm into a programming language is called coding. A variable declaration tells the operating system to allocate storage space in RAM.


Is a a concept in which the operating system allocates a portion of a storage medium to function as additional ram?

In the Unix world, at least, a space that you allocate for additional RAM like storage (not nearly as fast, btw) is called swap, or swap space. In the DOS/MS world it's Virtual memory.


What is the embryo function?

what is the function of food storage


What are the different storage class in C programming?

Automatic, register, external, static


Functions of an operating system?

allocates system resources controls basic "input and output" manages storage space


What has the author Ray Duncan written?

Ray Duncan has written: 'Advanced MS-DOS' -- subject(s): MS-DOS (Computer file), Assembler language (Computer program language), C (Computer program language) 'IBM Rom Bios' -- subject(s): IBM microcomputers, Programming, Read-only storage 'Advanced OS/2 programming' -- subject(s): Assembler language (Computer program language), OS/2 (Computer operating system) 'MS-DOS functions' -- subject(s): MS-DOS (Computer file) 'Power programming with Microsoft Macro Assembler' -- subject(s): Assembler language (Computer program language), Microsoft Macro assembler


Is COBOL a compiler programming language?

COBOL, the COmmon Business Oriented Language, is considered one of the forerunners of modern programming. Designed in the 1950s, it was considered the most advanced language of its time. It was commonly programmed on punch cards, which were in common use before disk storage as an input medium for stored procedures. It also had constructs considered revolutionary at that time, including self-modifying code.


What is the function of the gizzard of a cockroach?

It is a temporary food storage chamber.