fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void Test(int tab[], int pierwszy, int ostatni)
  5. {
  6. tab[pierwszy]=ostatni;
  7. }
  8.  
  9. int main()
  10. {
  11. int tab[]={1,2,3};
  12. cout<<tab[1]<<endl;
  13. Test(tab,1,666);
  14. cout<<tab[1]<<endl;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
2
666