how to do swapping???

Pages: 12
Aug 14, 2017 at 4:05pm
this is not running

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.
Pages: 12