What will be the output of the following C code?
#include < stdio.h >
int *m()
{
int *p = 5;
return p;
}
void main()
{
int *k = m();
printf(“%d”, k);
}
a) 5
b) Junk value
c) 0
d) Error
Answer: a
Related Posts
The technique whereby the DMA controller steals the access cycles of the processor to operate is called __________
Can a single DMA controller perform operations on two different disks simultaneously?
The controller is connected to the ____
When the R/W bit of the status register of the DMA controller is set to 1.
The DMA controller has _______ registers.
After the completion of the DMA transfer, the processor is notified by __________
In DMA transfers, the required signals and addresses are given by the __________
Join The Discussion