왜 오류뜨는것이죠?
즐겨찾기
2023.04.01
질문 제목 : 왜 오류뜨는것이죠?질문 요약 :오류가 6개뜹니다지적부탁드립니다.질문 내용 :
#include stdio.h
int main()
{
int red=1, blue=2;
int yellow;
printf(before \n);
printf(red = %d, blue = %d \n, red, blue);
int red=0;
int yellow=1;
int blue=0;
int red=2;
int yellow=0;
int blue=1;
printf(after \n);
printf(red = %d, blue = %d \n, red, blue);
return 0;
}
대체왜 오류뜨는걸까요 ..?
-
흡뜨다
int red = 1, blue = 2;
이게 이미 있는 상태에서 다다음줄에
int red =0;
int blue = 0;
또 선언 됬죠 ?? 이러면 안되요 ㅎㅎ