Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #define dim 3
- using namespace std;
- void funzione(int vett[] , int d = dim);
- int main()
- {
- int d = dim ;
- int vett[d] ;
- funzione( vett , d ) ;
- for (int i = 0 ; i<d ; i ++)
- {
- cout << vett[i] ;
- }
- return 0;
- }
- void funzione(int vett[], int d)
- {
- for ( int i = 0 ; i < d ; i++ )
- {
- cout << "Riempi erray" ;
- cin >> vett[i] ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement