I am learning C in my computing class and we were introduced to scanf today. This is the line of code that was used to introduce scanf:

```
#include <stdio.h>
void main() 
{
float x,y;
scanf("%f %f",&x,&y);
printf("%2f\n",x+y);
}

```

This works fine, if you put in two numbers it'll print the sum.
I thought it might work like pythons input function and so i modified the above code to include some text in scanf as follows:

```
#include <stdio.h>
void main() 
{
float x,y;

scanf("insert no  in format x y %f %f",&x,&y);

printf("%2f\n",x+y);
}

```

The output I get is not 10, but some random number. I say random as I tried to run the code multiple times, each time I received a different output. 

Is this something to do with memory allocation? Can scanf just not strings?