readFILEtoBMP (bmp, "c:\\\\Penguins.bmp");  //로 width, height 읽어오고

reduce_half (bmp, bmp);

}


void reduce_half (BMP * in_bmp, BMP* out_bmp)

{

printf("%d\n",in_bmp->bmp_info_header.image_width); // 1024 나옴

out_bmp->bmp_info_header.image_height = 500;

out_bmp->bmp_info_header.image_width = 500;

printf("%d",in_bmp->bmp_info_header.image_width); // 500나옴

getchar();




왜 out_bmp 값을바꿨는데 in_bmp값도 바뀌는거에요?