Page 1 of 1

Which variable has the longest scope in the following C code?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
#include <stdio.h> int b; int main() { int c; return 0; } int a;
a) a
b) b
c) c
d) Both a and b