<div>int main(void){<br> int x;</div> <div> x = NULL;<br> if(x != NULL)<br> printf("%d\n",x);</div> <div> return 0;<br>}<br>~</div> <div> </div> <div>이것을 gcc 하면(컴파일) 에러가남니다.</div> <div>왜인지 알수있을까요?</div> <div> </div> <div>test.c: In function ‘main’:<br>test.c:7: warning: assignment makes integer from pointer without a cast<br>test.c:8: warning: comparison between pointer and integer<br>에러코드는 이렇게나오는데</div> <div> </div> <div>왜 포인터 에러가나올까요?</div>
<div style="text-align:left;">
<div style="text-align:center;"><img src="http://thimg.todayhumor.co.kr/upfile/201402/1391318675K2QSS3BeVEgNKt8.jpg" width="500" height="751" alt="1.jpg" style="font-size:9pt;line-height:1.5;border:none;"></div>
<div style="text-align:left;">
<div style="text-align:center;"><img_ src="http://thimg.todayhumor.co.kr/upfile/201402/1391318676FvtzyFyCODin9aLlCogJpNSzN2HJWZ.jpg" width="500" height="751" alt="6.jpg" style="font-size:9pt;line-height:1.5;border:none;"></div>
<div style="text-align:left;">
<div style="text-align:center;"><img_ src="http://thimg.todayhumor.co.kr/upfile/201402/1391318675sPCUIgw4MXPGWvKuDFznr.jpg" width="500" height="751" alt="2.jpg" style="font-size:9pt;line-height:1.5;border:none;"></div>
<div style="text-align:center;"><img_ src="http://thimg.todayhumor.co.kr/upfile/201402/1391318676vyiZR1vWoC.jpg" width="500" height="751" alt="5.jpg" style="font-size:9pt;line-height:1.5;border:none;"><img_ src="http://thimg.todayhumor.co.kr/upfile/201402/1391318676UOjCi6H7HfdGjhKHycIWQ5ErgsP5.jpg" width="500" height="751" alt="4.jpg" style="font-size:9pt;line-height:1.5;border:none;"><img_ src="http://thimg.todayhumor.co.kr/upfile/201402/1391318675AON5apAen4g8T9dFiuAe.jpg" width="500" height="751" alt="3.jpg" style="font-size:9pt;line-height:1.5;border:none;"></div></div></div></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.