why we initialize new variable while doing swap #4
Unanswered
aayusranjan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
int tempwe are creating a temporary variable that can store the integer value. for examplehere, we are swapping
aandbby storingain temporary variable and after that we are storingbvalue inathen at last we are initializingb = tempthat means we that a value are now in bBeta Was this translation helpful? Give feedback.
All reactions