Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which variable has the longest scope in the following C code?
#include < stdio.h >
int b;
int main()
{
int c;
return 0;
}
int a;

Which variable has the longest scope in the following C code?
#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: b

Join The Discussion