Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C Compiler.
- Code, Compile, Run and Debug C program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <stdio.h>
- void inic(int s[], int n)
- {
- int i;
- for(i=0;i<n;i++){
- s[i]=0;
- // printf("Vetor",)
- }
- }
- void printV(int s[], int m)
- {
- int i;
- for(i=0;i<m;i++)
- printf("Valor: %d\n", s[i]);
- }
- int main()
- {
- int v[10];
- int x[20];
- inic(v,8);
- inic(x,22);
- printV(v,10);
- printV(x,20);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement