Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
221 B
1
Indexable
Never
//passing arrays to function
#include <stdio.h>
#include <string.h>

void display(int n)
{

    printf("%d\t",n);
}
void main()
{
int num[]={12,34,56,78,90};
for(int i=0;i<5;i++){
    display(num[i]);
}
}
Leave a Comment