1.

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

A. p
B. q
C. r
D. both p and r
E. None of these
Answer» B. q


Discussion

No Comment Found

Related MCQs