#include <stdio.h>
void print_array(int q[], int size) {
// q is a pointer constant.
int i;
for (i = 0; i < size; i++) {
printf("%d ", q[i]);
}
}
int main() {
int a[] = {10, 20, 30, 40};
print_array(a, 4);
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: