Interesting program

Try guessing the output for the below code!!!!!!!!!

What is the output?
(give input as: give me treat)
  #include    int main()
{
char dummy[80];
printf("Enter a string:\n");
scanf("%[^a]",dummy);
printf("%s\n",dummy);
return 0;
}