Gast
#2180982
Hallo,
ích habe das Problem, dass ich mit der sizeof()-Funktion einen anderen
Wert erhalte wenn das Argument als Parameter übergeben wurde:
void GetIntParam(intTypePrm intParam[]);
typedef struct{
char* name;
ViInt32* value;
}intTypePrm;
int status1 = 1;
int status2 = 2;
intTypePrm intParam[] = {{"status1", &status1}, \
{"status2", &status2}};
printf("%d\n", sizeof (intParam));
GetIntParam(intParam);
void GetIntParam(intTypePrm intParam[]){
printf("%d\n", sizeof (intParam));
}