Sorry about that. I expected to give a simple title and an example hoping that i could make it clear to you. I will give an expanded question then.
Suppose I have a code
printf("Read a string : ");
printf("Enter a number : ");
Suppose we execute the above code.
smp@debian$: gcc <filename> -o output
Now I should be able to read an integer as well as a string.
The output of executing the program
Enter a number : 10 #Number could be read.
Read a string : #String could not be read. It just went past without waiting for an input.
This is the problem. I hope you can understand it now. And sorry about the title. I thought of posting the problem but then it would turn out too big and when I thought of editing it, i couldnt edit a thread. Sorry about that
Thanks for your help