Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define SIZE 5
- void copy_arr(double [], double [], int);
- int main(int argc, char *argv[]) {
- double source[SIZE] = {1.1,2.2,3.3,4.4,5.5};
- double target1[SIZE];
- void copy_arr(target1, source, SIZE);
- return 0;
- }
- void copy_arr(double artrg1[], double arsrc[], int num) {
- for (int i = 0; i < num; i++) {
- artrg1[i] = arsrc[i];
- printf("i = %d\n", i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement