강의

멘토링

커뮤니티

Inflearn Community Q&A

dsakggf741849's profile image
dsakggf741849

asked

C Programming - From Introduction to Game Development

Character vs String

작업 실행이 되지 않아요

Written on

·

276

0

아래 작업이 실행 되지 않습니다; 

#include <stdio.h>
int main(void)
{
	
	char str[] = "cocacala";
	/*printf("%s\n", str);
	printf("%d\n", sizeof(str));*/
	for (int a = 0; a < sizeof(str); a++);
	{
		printf("%c\n", str[a]);
	}
return 0;
}
c

Answer 2

1

for 문뒤에 ; 를 한 번 지워 보세요!!

0

nadocoding님의 프로필 이미지
nadocoding
Instructor

hwan8195 님 답변 감사드립니다 ^^

dsakggf741849's profile image
dsakggf741849

asked

Ask a question