20120113

Program in Cto display array elements

//========================
//Program in Cto display array elements
//========================
#include<stdio.h>
void display(int *);
int main()
{
        int i;
        int  marks[]={11,10,20,95,98,50,98};
        for(i=0;i<=6;i++)
                display(&marks[i]);
        //return 0;
}
void display(int *m)
{
        printf("\n %d",*m);
}

No comments:

Post a Comment