in Education by
write a program in c++ to interchange 2 values without the 3rd variable. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
#include int main() { printf(“Hello world!\n”); int a,b; printf(“Enter the two number \n”); scanf(“%d%d”,&a,&b); a=a+b; b=a-b; a=a-b; printf(“%d%d”,a,b); return 0; }

Related questions

0 votes
    Write a function that interchange and prints the value of two integers A and B without using any extra variable in php. Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    The value of a is 34 and the value of b is 79. Write a JAVA program to interchange the value of a and b ... After interchange a=79 b=34 Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    C Write T for True and F for False 2. 1. The full form of GIF is Graphics Interchange Format. You can ... the current HTML document. Select the correct answer from above options...
asked Dec 27, 2021 in Education by JackTerrance
0 votes
    C Write T for True and F for False 2. 1. The full form of GIF is Graphics Interchange Format. You can ... the current HTML document. Select the correct answer from above options...
asked Dec 26, 2021 in Education by JackTerrance
0 votes
    write algorithm and flowchart the inputs two numbers swaps these values without using third variable Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Write a program in python to insert ten friends name in a list, then print 3rd, 5th and 9th value from the list (using data structure) Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Write a c program to find largest and smallest among all elements of 2-d array. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Write error message given by C compiler during compilation if we use %d to print float variable Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    perimeter of circle in c program without argument with return type Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    write a java program to print areaof an equilateral triangle . (without using scanner) Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Write a program to accept string from user and search a given character from string without using find() function Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    How to write a program in JAVA to print the sum of ASCII values of a particular word input ? Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    Write C program that use both recursive and non recursive functions to perform Linear search for a Key value in a given list. Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
...