씨언어 질문
ㅇㄹㅇ(202.30)
2017-01-03 17:08
추천 0
include <stdio.h>
int main(void)
{
printf (" %d n", 50.2);
return 0;
}
여기서 %d가 10진수 정수형태로 출력하는 서식문자아님????
그래서 저렇게했을때 50이나와야 된다고 생각했는데 출력된거 보면 -12381232 이딴식으로 나오는데 왜그런지 아는사람?ㅠㅠㅠ
<!-- //con_substance --> <!-- con_banner -->
<!-- 2014-03-18 구글 비동기식 -->
[removed][removed] <!-- Test --> <iframe name="aswift_1" width="160" height="600" id="aswift_1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" vspace="0" hspace="0" allowfullscreen="true" style="left: 0px; top: 0px; absolute;" allowtransparency="true" i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}"></iframe>
[removed]
(adsbygoogle = window.adsbygoogle || []).push({});
[removed]
<!-- 2014-03-18 구글 비동기식 -->
<!-- //con_banner --> <!-- //re_gall_box_1 --> <!--160630 디시위치태그-->
<!--//160630 디시위치태그--> <!-- re_gall_box_2 -->
<!-- 130429 본문 광고 -->
<!-- 2014-03-18 구글 비동기식 -->
[removed][removed] <!-- Test --> <iframe name="aswift_2" width="728" height="90" id="aswift_2" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" vspace="0" hspace="0" allowfullscreen="true" style="left: 0px; top: 0px; absolute;" allowtransparency="true" i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}"></iframe>
[removed]
(adsbygoogle = window.adsbygoogle || []).push({});
[removed] <!-- 2014-03-18 구글 비동기식 -->
<!-- 130429 btn_recommend -->
<!-- report_bts -->
<!-- //re_gall_box_2 --> <!-- 130429 신고개선안 팝업 추가 -->
<!--// popup div group - end //--> <!-- re_gall_box_3 --> <!-- //re_gall_box_3 -->
<iframe width="1100" height="140" src="http://adex.ednplus.com/xc/h/Fz53qPFk" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" leftmargin="0" topmargin="0"></iframe>
<!-- re_gall_box_4 -->
<!-- gallery_re -->
<!-- gallery_re_title -->
4 <!-- //gallery_re_title --> <!-- gallery_re_btn -->
- <!--
- 전체보기 --> <input id="comment_hide" type="hidden" value="N">
<!-- //gallery_re_btn -->
<!-- //gallery_re --> <!-- gallery_re_list -->
<!-- gallery_re_contents -->
<!-- gallery_re_contents -->
보이스리플이란? 갤러리 게시물에 일반 텍스트 형태가 아닌
음성으로 리플을 등록할 수 있는 기능 입니다.
보이스리플 등록은 스마트폰 전용 어플리케이션을 설치하신후 모바일웹(m.dcinside.com)을 통해 등록 할 수 있습니다.
[전용 어플리케이션 다운 안내]
※스마트폰 브라우저 주소창에 위 주소를 입력 또는 우측 qr코드를 스캔해 다운 받을 수 있습니다.
![qr code]()
| dd | 정수형과 부동소수점형 숫자가 메모리에 저장되는 방식이 달라서, 원하는 결과를 얻고싶다면 (int) 50.2처럼 정수형으로 저장될거라는걸 명시해주새요14.39.*.* | 2017.01.03 16:36:58 | ![삭제버튼]() |
|
댓글 삭제 - 비밀번호 입력
<input name="re_password_1" id="re_password_1" type="password"> |
| 플래밍 | 아하 그렇구나! | 2017.01.03 16:51:23 | ![삭제버튼]() |
|
댓글 삭제 - 비밀번호 입력
<input name="re_password_2" id="re_password_2" type="password"> |
| 글쓴이 | 그럼 처음에 Int num;202.30.*.* | 2017.01.03 17:06:32 | ![삭제버튼]() |
|
댓글 삭제 - 비밀번호 입력
<input name="re_password_3" id="re_password_3" type="password"> |
| 글쓴이 | 하고 printf("%d", num); 해야된다는 얘기인가요?202.30.*.* | 2017.01.03 17:07:02 | ![삭제버튼]() |
이렇게 해야된다는?
밑에 내 댓글보셈