Which variable has the longest scope in the following C code?
#include <stdio.h>
int b;
int main()
{
int c;
return 0;
}
int a;
#include <stdio.h>
int b;
int main()
{
int c;
return 0;
}
int a;A. a
B. b
C. c
D. Both a and b
Answer: Option B

Join The Discussion