fork download
#include <iostream>
using namespace std;

void x(int y[10])
{
	cout << y << endl;
	cout << &y << endl;
}

int main() {
	int a[10];
	cout << a << endl;
	cout << &a << endl;
	cout << &a[0] << endl << endl;

	x(a);
	cout << endl;
	x(&a);

	return 0;
}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:18: error: cannot convert ‘int (*)[10]’ to ‘int*’ for argument ‘1’ to ‘void x(int*)’
stdout

Standard output is empty