0

Tell me what i am doing wrong in this code?

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

3rd Mar 2018, 2:13 AM
Jatin khajuria
Jatin khajuria - avatar
8 Answers
+ 9
Put a semicolon after swap (a,b) Correction : swap (a,b);
3rd Mar 2018, 2:16 AM
Mohammad Amir Aqeel
Mohammad Amir Aqeel - avatar
+ 4
you have just forgotten a semicolon after swap(a,b) @Jatin.
3rd Mar 2018, 2:16 AM
Akash Pal
Akash Pal - avatar
+ 4
@Jatin why have you swapped the values twice.
3rd Mar 2018, 2:18 AM
Akash Pal
Akash Pal - avatar
+ 2
o thanks@mohammad bro
3rd Mar 2018, 2:18 AM
Jatin khajuria
Jatin khajuria - avatar
+ 2
just calling the function by value
3rd Mar 2018, 2:19 AM
Jatin khajuria
Jatin khajuria - avatar
+ 2
and seeing the diff be cbv and cbr
3rd Mar 2018, 2:19 AM
Jatin khajuria
Jatin khajuria - avatar
+ 1
thnkS
3rd Mar 2018, 2:18 AM
Jatin khajuria
Jatin khajuria - avatar
+ 1
but thAt semicolon struck me
3rd Mar 2018, 2:20 AM
Jatin khajuria
Jatin khajuria - avatar