Wednesday, 28 October 2015

C PROGRAMMING ---POINTER TO ARRARY

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{       clrscr();
    int a[5]={5,6,7,8,9};
    int *p=a,i;
    for(i=0;i<5;i++)
    {    printf("%u\n",(p+i));
        printf("%d\n",*(p+i));
    }
    getch();
}





No comments:

Post a Comment