soryy about that I actually made them comments myself incase I needed to go back to them or something.. I tried the code you stated above but for some reason it is still giving the value 304500... I dont understand whats wrong. this is how I did it using your code:
#include <iostream>
using namespace std;
void Arr (int a[]) {
for(int i=0; i<5; i++) {
cout << "Values of a[" << i << "] = " << a[i] << endl;
}
}
int main(){
int a[5];
Arr(a);