#include <iostream>
void foo(int s) {
int arr[s] = { 0 };
arr[2] = 5;
std::cout << arr[3] << " " << arr[2];
}
// int* foo2(int s) {
// int arr[s] = { 0 };
// return arr;
// }
int main() {
foo(4);
// int* a = foo2(4);
// std::cout << " " << a[2];
}
To embed this project on your website, copy the following code and paste it into your website's HTML: