What will be the output of the following C code?
#include < stdio.h >
int *m();
void main()
{
int *k = m();
printf(“hello “);
printf(“%d”, k[0]);
}
int *m()
{
int a[2] = {5, 8};
return a;
}
a) hello 5 8
b) hello 5
c) hello followed by garbage value
d) Compilation error
Answer: c
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