C Programming Storage Management 1 Online Exam Quiz

C Programming Storage Management 1 GK Quiz. Question and Answers related to C Programming Storage Management 1. MCQ (Multiple Choice Questions with answers about C Programming Storage Management 1

In function free(p), p is a _______

Options

A : int

B : pointer returned by malloc()

C : pointer returned by calloc()

D : pointer returned by malloc() & calloc()

View Answer

void * malloc(size_t n) returns?

Options

A : Pointer to n bytes of uninitialized storage

B : NULL if the request can be satisfied

C : Nothing

D : None of the mentioned

View Answer

Which of the following is used during memory deallocation in C?

Options

A : remove(p);

B : delete(p);

C : free(p);

D : terminate(p);

View Answer

Memory allocation using malloc() is done in _________

Options

A : Static area

B : Stack area

C : Heap area

D : Both Stack & Heap area

View Answer

calloc() returns storage that is initialized to.

Options

A : Zero

B : Null

C : Nothing

D : One

View Answer

Chemical Engineering Basics - Part 1 more Online Exam Quiz

C Programming Questions Static Variables

C Programming Random Number Generation 1

C Programming Self Referential Structures 1

C Programming Sizeof Keyword 1

C Programming Sizeof Keyword 2

C Programming String Operations

C Programming Ungetc 2

C Programming Variable Length Argument

C Programming Variable Names 1

C Programming Variable Names 2