S
srimks11
I have to copy an array "xyz" as passed in function arguments "void
Apple ( double xyz [MAX_NUM][CUT], W, X, Y, Z) to bigger size where
initially CUT = 3 but new increased size of CUT = 4.
CUT & MAX_NUM has been earlier defined in header file as -
---------
#define CUT 3
#define MAX_NUM 2048
---------
So, locally CUT should be modified of size 4 with MAX_NUM being same
as earlier, something as -
---
#include <stdio.h>
void Apple ( double xyz [MAX_NUM][CUT], W, X, Y, Z) {
.............
.............
......A....
.............
.............
}
---
Should I go for using normal FOR loop copy or memcpy() in section A
source code.
Please suggest.
Apple ( double xyz [MAX_NUM][CUT], W, X, Y, Z) to bigger size where
initially CUT = 3 but new increased size of CUT = 4.
CUT & MAX_NUM has been earlier defined in header file as -
---------
#define CUT 3
#define MAX_NUM 2048
---------
So, locally CUT should be modified of size 4 with MAX_NUM being same
as earlier, something as -
---
#include <stdio.h>
void Apple ( double xyz [MAX_NUM][CUT], W, X, Y, Z) {
.............
.............
......A....
.............
.............
}
---
Should I go for using normal FOR loop copy or memcpy() in section A
source code.
Please suggest.