Give single value to scanf that require two behaive strange
===


    #include<stdio.h>
    int main()
    {
      int x,y; 
      printf("please input 2 numbers:\n");
      scanf("%d,%d",&x,&y);
      printf("Now the value for x is %d, and value for y is %d",x,y);
      return 1;
    }

what I input two numbers and seperated them by `,` then things works as expected.

But if I give one number 2345, then a strange result occured:

Now the value for x is 3456, and value for y is 32767

I can't figure out why it is.
