how to do swapping???
Aug 14, 2017 at 4:05pm
Please be specific. Does it fail to compile. Or does it run but then crash? Or does it give the incorrect output?
There's an error in the
printf()
statement.
This line:
|
printf("a=%d\n=%d\n,a,b");
|
should read like so:
|
printf("a=%d\nb=%d\n", a, b);
|
You have almost exactly the same mistake in the
scanf()
statement.
Aug 15, 2017 at 6:46am
got it... thanks
Topic archived. No new replies allowed.