how to do swapping???
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.
got it... thanks
Topic archived. No new replies allowed.