0

If there any way to make x = 2 when i call the second f(arr)

#include<iostream> using namespace std; void f(int arr[]) { int x = 0; cout << arr[x]; x++; } int main() { int arr[4] = { 1, 2, 3, 4 }; f(arr); f(arr); }

30th Oct 2019, 5:10 PM
Abdelrhman Albarbary
Abdelrhman Albarbary - avatar
1 ответ
0
I don’t understand your question
30th Oct 2019, 6:45 PM
Brave Tea
Brave Tea - avatar