너무 급해요ㅠㅠ 죄송해요..
나빛
2023.04.01
질문 제목 : while문 안에 전 후위 연산자전위, 후위 연산자질문 내용 :
#include stdio.h
int main(void)
{
int exponent1 = 0, power_of_two1=1;
int exponent2 = 0, power_of_two2=1;
while (++exponent1=10)
printf(%5d, power_of_two1*=2);
printf(\n);
printf( ++exponent를 썼을 때 출력되는 값은? %5d\n\n\n, exponent1);
while (exponent2++=10)
printf(%5d, power_of_two2*=2);
printf(\n);
printf( exponent++를 썼을 때 출력되는 값은? %5d\n\n\n, exponent2);
return 0;
}
여기서.. 왜 exponent1 에는 11이 출력되고
exponent2에 12나 출력 되는지 모르겠어요! 빠른 답변 부탁드려요. ㅠㅠㅠ