Swapping two numbers or variables without third variable in C| #2 Coding Bytes

preview_player
Показать описание


Also, to receive placement preparation tips and placement related updates on TCS, Accenture and various other companies. Come join the largest 2020 Passouts Community on FACE’s Telegram and WhatsApp, and take your placement preparation to the next level.

Join here:
Рекомендации по теме
Комментарии
Автор

What if any character data type to swap, mrs.swathi madam?

shyamprakashm
Автор

Can Give technical interview questions theory notes

bharathvijayp
Автор

Good explanation 👌 expecting more programming videos.

remyatv
Автор

Can we have more coding questions for interview particularly C programming?

DristiHandiqueRA
Автор

You are explaining very well and with all possible methods to solve problem.it will help us to improve coding skills and logical skills.

nashwanth
Автор

hi i need this hello world : : string output like olleh dlrow : : please help me

durgaraobattula
Автор

Can you show a more generalized proof for the last method? I know I works for all the numbers but I don't get why it works

cpgautam
Автор

Nyc explanation but pls do more videos in less time.

gsuneel
Автор

We can use another logic--->
x=x+y
y=x-y
X=x-y

ramkumarmondal
Автор

import java.util.*;

public class Main
{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
a = a+b;
b = a-b;
a = a-b;
System.out.println(a);
System.out.println(b);
}
}

sayonislam