• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 5

can we have better code for swapping two no from this?

https://code.sololearn.com/ca30UB41XtIj/?ref=app

cprogramcompitativeprogramming
2nd Feb 2018, 1:09 PM
Harsh Namdev
Harsh Namdev - avatar
2 Answers
+ 9
very interestring way, i didn't see it before 👍 😃
2nd Feb 2018, 1:37 PM
Vukan
Vukan - avatar
+ 2
maybe😉 int temp=b; b=a; a=temp;
2nd Feb 2018, 1:40 PM
Kuba H
Kuba H - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
My codebits section is full of deleted codes
12 Votes
Ai generated practices
1 Votes
Where did mess up....
1 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
I need a siren sound
0 Votes
Yo this is madness
0 Votes
How can i insert files?
1 Votes
Where can I find python and SQL projects to work on for my portfolio that are beginner to intermediate?
1 Votes
help!!! How to build portfolio? I am in last year of highschool and still noob lol
0 Votes