Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define N 5
- void salva(int v[]);
- int main (void){
- int vet[N],i;
- salva(vet);
- for(i=0;i<N;i++){
- printf("%d\t",vet[i]);
- }
- }
- void salva(int v[])
- {
- int i,num;
- printf("Inserire un valore ");
- scanf("%d",&num);
- for(i=0;i<N;i++){
- v[i]=num;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement