Home » C Programming » Variables » Question
  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;
    1. p
    2. q
    3. r
    4. both p and r
    5. None of these
Correct Option: A

p



Your comments will be displayed only after manual approval.