Playground
#include <iostream> using namespace std; void func(int array[]) { array[0] = 10; } int main() { int array[] = {1, 2, 3, 4, 5, 6, 7}; func(array); cout << array[0] << endl; //pechati '10' return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!