Click To Get Off-Campus Placement Jobs Info !!!
FREE!!! Latest Nagarro FULL Aptitude Mock Test for Practice
Practice 5+ Mettl Aptitude Mock Test

Program Discussion :: Basics

Home > Programs > Basics

5 / 244

Write code for swapping two variables without using 3rd variable.

Answer:

#include
#include
# include 
using namespace std;
main()
{
int a=10, b=20;
clrscr();
cout

Asked In :: Wipro TCS Syntel Inc. Sapient Capgemini

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: