/* ex1209.c */ #include <stdio.h> void showarray(int array[]); int main() { int n[]={2,3,5,7,11}; puts("Here's your array: "); showarray(n); return(0); } void showarray(int array[]) { int x; for(x=0;x<5;x++) printf("%d",array[x]); putchar('\n'); }
Here's your array: 235711 Process returned 0 (0x0) execution time : 0.108 s Press any key to continue.
Tidak ada komentar:
Posting Komentar