Dear sir/madam,
This is Harika. I have a doubt about a function called getchar().
Why it doesnot work after reading a string using scanf() function.
For ex:
printf("Enter the string");
scanf("%s",a);
b=getchar();
putchar(b);
I hope u would give me compatible solution.
Thank you.
This is Harika. I have a doubt about a function called getchar().
Why it doesnot work after reading a string using scanf() function.
For ex:
printf("Enter the string");
scanf("%s",a);
b=getchar();
putchar(b);
I hope u would give me compatible solution.
Thank you.
Comment