Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. Consider the following C program. #include int main() { static int a[] = {10, 20, 30, 40, 50}; static int *p[] = {a, a+3, a+4, a+1, a+2}; int **ptr = p; ptr++; printf(“%d%d”, ptr-p, **ptr); } The output of the program is ______.
    1. 104
    2. 140
    3. 41
    4. 401
Correct Option: B




Your comments will be displayed only after manual approval.