Quick actions

cmd+k|ctrl+k

Navigation

Languages

4

Snippet info

Language

Cpp

Visibility

public

Author

misha127831

Created

2018-12-26T09:51:20Z

Updated

2018-12-26T11:29:02Z

#include <iostream>
using namespace std;
void Func(int D[], int size) { 
for (int i = 0 ; i< size; i++){
if (D[i]==0)
{
    D[i] = 1;
}
cout<<D[i]<<" ";

 }
}
int main() {
int  B[16];
int A[15]={1,2,5,6,3,4,8,9,7,6,5,8,4,5,3};
for (int j=0; j<16;j++)
{
B[j] = (rand() %270 - 100);
}
Func(A,15);
cout <<endl<<endl;
Func(B,16);
    return 0;
}
INFO