SWAP Two Number Without Third Variable in C++ Programming 🔥🔥 @codebucketht

preview_player
Показать описание
SWAP Two Number Without Third Variable in C++ Programing 🔥🔥#programing #programmingline #cpp

FOLLOW ⬇️⬇️

➤Previous Video's▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼

C++ Program To Check Number is Even Or Odd 🔥

C++ Program To Add Two Number

➤My Gears▼▼▼▼▼▼▼▼▼▼▼

MOBILE : Realme 2 Pro
MIC : Boya M1

➤Don't Forget.........LIKE SHARE & SUBSCRIBE👍↗️

➤Your Quries▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
swap two numbers without third variable,swap two numbers without third variable in c,swap two numbers without third variable in cpp,swap two numbers without third variable js,number swap two numbers without using third variable,swap two numbers in java,swap two numbers in c,swap two numbers in python,swap two numbers in c++ program,swap two numbers in c using function,swap two numbers using pointers
C++,
c++ program,
c++ programs,
c++ programming language,
c++ programs for practice,
simple c++ program,
c++ programiz,
c++ program to add two numbers,
c++ programming examples
Рекомендации по теме
Комментарии
Автор

It can also be done like this
a= a+b;
b= a-b;
a= a-b;

predator
Автор

In which college year you are studying

BOSS
Автор

You should do the memoryless swap using bitwise xor, it's faster and works for all numbers or characters, including 0. Your solution will break if b = 0 for instance.

NicholasBertollo
Автор

But why..? why not just add a third variable this is literally slower

kebbil