Skip to content

202500937 표강준 과제 관련 질문드립니다. #7

Description

@Standardrkd

다음과 같은 변수 선언이 있는 경우 예상 출력에 대한 문제들이지만
char a[]={0,1,2,3,4}; char * b[]={"spring", "summer", "fall", "winter"}; int i; int num; int *p; int *q; char *w;

[문제 34] 에서

char *w = b[1]; // <<< 여기!
w += 3;
printf("%s\n", w);

이미 위에 char *w; 로 선언된 것과 중첩되어 오류가 나는데 w = b[1];를 의도한 것이 아닌지 여쭙고 싶습니다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions