C Programming Exercise | Program to Swap 2 Numbers Using a temp / third Variable

C Programming Exercise | Program to Swap 2 Numbers Using a temp / third Variable

LearningLad

9 лет назад

22,014 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Ketan1414
@Ketan1414 - 09.04.2015 09:34

which terminal is it??

Ответить
@aidandanielski
@aidandanielski - 10.06.2017 02:39

In C++
template<typename T> inline void swap(T* x, T* y) { T z=*x; *x = *y; *y = z; }
or
template<typename T> inline void swap(T& x, T& y) { T z=x; x = y; y = z; }
It's also in the STL. I'm that 'tis annoyingly obvious.

Ответить
@harshavardhanupputuri6211
@harshavardhanupputuri6211 - 09.08.2017 15:09

Sir y u don't reply to these tutorials u only replied to first tutorials nd now y u r not using conio.h y???????????

Ответить
@amalia0007
@amalia0007 - 18.03.2018 13:31

I had a lot of trouble visualizing this logic. Thank you very much for making it clear, sir!

Ответить
@what-tk9cc
@what-tk9cc - 25.07.2018 04:36

Thank you for that great explanation with examples which make me easier to understand.

Ответить
@AyuJessieM
@AyuJessieM - 05.11.2018 18:44

Thank you so much, this is such an understandable and simple explanation. Now i understand :) xoxo

Ответить
@halilmertdeveli3846
@halilmertdeveli3846 - 27.12.2020 22:09

thank you it was greatı get ıt

Ответить
@mohammadsami697
@mohammadsami697 - 12.03.2023 15:59

Thank u so much 🤗🤗🤗

Ответить
@MuhammadAbdullah-vd9fj
@MuhammadAbdullah-vd9fj - 06.08.2023 19:59

The example helped a lot, Thanks!

Ответить
@RamyaBeenamoni
@RamyaBeenamoni - 20.11.2023 17:09

Take 5 elements and do sort 10,30,20,50,40

Ответить
@rejwar
@rejwar - 11.12.2023 06:15

AWESOME

Ответить