What will be the output of the following C code?
#include < stdio.h >
int x = 5;
void main()
{
int x = 3;
m();
printf(“%d”, x);
}
void m()
{
x = 8;
n();
}
void n()
{
printf(“%d”, x);
}
a) 8 3
b) 3 8
c) 8 5
d) 5 3
Answer: a
Related Posts
In a serial port interface, the INTR line is connected to _____
The standard used in serial ports to facilitate communication is _____
The data transfer in UART is done in ______
The key feature of UART is _____
UART stands for ________
_____ to increase the flexibility of the serial ports.
The double buffer is used for _________
Join The Discussion