All pastes #69402 Raw Edit

Untitled

public text v1 · immutable
#69402 ·published 2006-06-22 21:30 UTC
rendered paste body
void test(double *numbers) {
   printf("Size in function:%d\n", sizeof(numbers));
}

void main(void) {
   double numbers[] = {8.0,5.0};
   printf("Size in main:%d\n", sizeof(numbers));
   test(numbers);
}


Results when run:
Size in main:16
Segmentation fault