이런거 물어도 될까요?? ㅡ.ㅡ;
여기 질문의 수준이 너무 높아서 감히 이런걸 물어도 될지 모르겠네요.
#include
int x,y;
main()
{
printf("Enter two numbers\n");
scanf("%d %d", &x,&y);
printf("\n%d is bigger\n",(x>y)?xy);
return 0;
}
위에 적힌대로 했을때는 컴파일 하고 나서 실행할때
123
12345
12345 is bigger
이렇게 나옵니다.
그런데
scanf("%d ppp %d",&x,&y); 이렇게 적으면
123
12345
123 is bigger 라고 나오고
scanf("%dppp %d",&x,&y); 이렇게 적으면
123
123 is bigger 라고 나옵니다.