#include <stdio.h> int main() { char str[32]="Hello World"; int i=0; while(str[i]!=NULL) { str[i]+=1; i++; } while(str[i]!=NULL) { putchar(str[i]); i++; } return 0; }
print out 하기 전에 i 값을 초기화 안해 주셨죠.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
print out 하기 전에 i 값을 초기화 안해
print out 하기 전에 i 값을 초기화 안해 주셨죠.
댓글 달기