What will be the output of the following C code having void return-type function?
#include < stdio.h >
void foo()
{
return 1;
}
void main()
{
int x = 0;
x = foo();
printf(“%d”, x);
}
a) 1
b) 0
c) Runtime error
d) Compile time error
Answer: d
Related Posts
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 __________
The DMA transfers are performed by a control circuit called as __________
The DMA differs from the interrupt mode by __________
Join The Discussion