edited by
449 views
1 votes
1 votes
int main()
          {
           int i,j;
           char a[2][3]={{'a','b','c'},{'d','e','f'}};
           char b[3][2];
           char *p=*b;
           for(i=0;i<2;i++)
                     {
                     for(j=0;j<3;j++)
                                {
                                *(p+2*j+i)=a[i][j];
                                 }
                      }
           }

please explain this...

edited by

1 Answer

Related questions

3 votes
3 votes
1 answer
1
Storm_907 asked Apr 16, 2023
442 views
Please explain this question void main() { int a =300; char *ptr = (char*) &a ; ptr++; *ptr=2; printf("%d" , a); }
4 votes
4 votes
4 answers
3
Manoj Kumar Pandey asked May 22, 2019
797 views
https://gateoverflow.in/?qa=blob&qa_blobid=14433986388826671915int main() { int a = 10; int *b = &a; scanf("%d",b); printf("%d",a+50); }What will be the Output of the fol...