20120113

Program in C to display marks in an array

//========================
//Program in C to display marks in array
//========================
#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