Inflearn brand logo image

Inflearn Community Q&A

taechoon's profile image
taechoon

asked

Hong Jeong-mo's C Language Learning by Following (Appendix)

17.12 Implementing a circular queue with an array

12:30 의 ArrayQueue.h

Written on

·

265

0

12:30 의 ArrayQueue.h의 

struct element

{charname[TIZE];}

element;

로 구조체 element 타입에 대한 element라는 객체를 선언하고있는데요 , 굳이 그럴필요가 있나요?

단순히 구조체element만을 선언해도 되지않나 싶은데 어떻게 생각하시나요?

c

Answer 2

1

taechoon님의 프로필 이미지
taechoon
Questioner

답변감사합니다^^

1

안녕하세요? 저도 비슷하게 생각합니다.
아마 실수하신 것이 아닐까 생각되는군요.
아래 문장과 이어서 저라면

	typedef struct element
	{
		...
	} Item;


으로 작성할 것 같네요.

taechoon's profile image
taechoon

asked

Ask a question