in Programming in C edited by
119 views
0 votes
0 votes

#include<stdio.h>

#include<conio.h>

int main(){

    int a[][3]={ {4,14,24},{5,15,25},{6,16,26}};

    int *p[3];

      int **ptr=p;

    p[0]=a;

    p[1]=a+1;

    p[2]=a+2;

    ++*p;

    ++p[0];

    ++**ptr;

    ++*p[0];

    ++ptr;

    ++*ptr;

    --*p[1];

    --*ptr;

    ++ptr;

    --p[2];

    --*ptr;

    ++*p[2];

    printf("\n%d,%d,%d",a[0][2],a[1][1],a[2][0]);

    printf("\n%d,%d,%d",*p[0],*p[1],*p[2]);

   

}

what is the output of above program

in Programming in C edited by
119 views

Please log in or register to answer this question.

Related questions