mattias1975
Programmer
Hello!
I have problem with the function scanf.
My program looks like this:
scanf("%s", a);
scanf("%s", b);
I run it and enter the value of a.
But after that it jumps over the other scanf so that i don't get the chance to enter the value b.
I know its possible to solve the problem so i can use scanf but i dont know how to do it. And thats my question.
I am not allowed to use any other functions because i am taking a c course and i have to know how scanf works.
Thank you.
I have problem with the function scanf.
My program looks like this:
scanf("%s", a);
scanf("%s", b);
I run it and enter the value of a.
But after that it jumps over the other scanf so that i don't get the chance to enter the value b.
I know its possible to solve the problem so i can use scanf but i dont know how to do it. And thats my question.
I am not allowed to use any other functions because i am taking a c course and i have to know how scanf works.
Thank you.