0
void main()
{
int a;
char b;
scanf("%d%c",&a,&b); /// char not taken ??
 }                                    // problem with buffer  or stack

i know this can be avoid by using fflush(stdin);
or giving "\n" or space inbetween ;

i need exact answer plzz help !!!
thanks

Edited by Nick Evan: added code-tags

4
Contributors
4
Replies
6
Views
8 Years
Discussion Span
Last Post by Xufyan
0

Sorry I am new Here I was in C# section, I can't tell where I am half the time.

I learnt C a while ago Like 7 years ago from what I can remember, scanf is something to do with dos input. I would have to do some reading to help you.

if you could remind me what "%d%c" meant I may help you.

0

these are the format specifiers use to print integers / characters


%c = characters
%d = integers

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.