@anksingla-ttYJbX
•
Oct 23, 2024
Oct 23, 2024
1.4K
problem in c program..
Below program is to print the values of 2d array s.
int s[][2]={12,1,13,214,3};
int i,j;
int (*p)[2];
int *pint;
For(i=0;i<3;++i)
{
p=&s;
pint=(int*)p;
for(j=0;j<2;++j)
printf("%d",*(pint+j));
}
This will print values...