If I write
int main() { int a[100] = {1,2,3,4,}; cout<
No. You are wrong.
If I run your second part of code, it gives 1 on my computer. It's not 400.
#include void func(int *a); using namespace std; int main() { int a[100] = {1,2,3,4,}; func(a); return 0; } void func(int *a) { cout<
Produces
1