WAP to enter 10 number using array and display through pointer

void main()
{
    int no[10],i,*p;
    clrscr();

    printf("enter 10 no:");
    for(i=0;i<=9;i++)
    {
        scanf("%d",&no[i]);
        p=no[0];
    }
    printf("display:");
    for(i=0;i<=9;i++)
    {
        printf("\n%d",*p);
        p++;
    }
    getch();
}
WAP to enter 10 number using array and display through pointer WAP to enter 10 number using array and display through pointer Reviewed by Unknown on 21:30:00 Rating: 5

No comments:

Powered by Blogger.