hi all,
i jus executed this code on the borland compiler
#include<stdio.h>
void main()
{
char a[20],s[22];
scanf("%s", a);
gets(s);
}
And it only took input from scanf function only
whereas when i tried this code
#include<stdio.h>
void main()
{
char a[20],s[22];
gets(s);
scanf("%s",a);
}
it took input from both the functons.
can anybody tell me why this happened.......
you can also mail me at [email removed]
Thanks......