thecall
Junior Member level 2
what will b output of these two programs when icompile theses programs the output is beyond my understanding kindly tll what w will be output and why
THnx if u help
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
int n[3][3]={
2,4,3,
6,8,5,
3,5,1
};
printf("\n %d %d %d",*n,n[3][3],n[22][2]);
}
----------------------------------------------------------
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
int n[3][3]={
2,4,3,
6,8,5,
3,5,1
};
int i,*ptr;
ptr=n[0];
for(i=0;i<=8;i++)
{
printf("\n%d",*(ptr+1));
}
getch();
}
THnx if u help
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
int n[3][3]={
2,4,3,
6,8,5,
3,5,1
};
printf("\n %d %d %d",*n,n[3][3],n[22][2]);
}
----------------------------------------------------------
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
int n[3][3]={
2,4,3,
6,8,5,
3,5,1
};
int i,*ptr;
ptr=n[0];
for(i=0;i<=8;i++)
{
printf("\n%d",*(ptr+1));
}
getch();
}