Please answer the following questions for me <3 ;
If a machine instruction, e.g. JMP, can not specify a segment number then it is using
Select one:
a. explicit segments
b. segment offsets
c. code sharing
d. implicit segments
The primitive data types, double and long
Select one:
a. may or may not be the same size
b. will always be the same size
c. will never be the same size
d. long will always be bigger
Malloc is used to
Select one:
a. free memory to the heap
b. allocate memory from the stack
c. allocate memory from the heap
d. free memory to the stack
The primitive data types, double and long
Answer: b. will always be the same size
double and long double have the same size in some systems
But in others, long doubles are of greater size
Malloc is used to
Answer: c. allocate memory from the heap
malloc is used to allocate a block of memory on the heap. The program accesses this block of memory via a pointer that malloc returns.
When the memory is no longer needed, the pointer is passed to free which deallocates the memory so that it can be used for other purposes.
Other memory allocation functions are
If you have any doubts, leave a comment below and I'll help you out.
Get Answers For Free
Most questions answered within 1 hours.