I have been asked in an interview how do you pass an array to a function without using any pointers but it seems to be impossible or there is way to do this?
You can put the array into a structure like this:
struct int_array {
int data[128];
};
This structure can be passed by value:
void meanval(struct int_array ar);
Of course you need to now the array size at compile time and it is not very wise to pass large structures by value. But that way it is at least possible.