Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
write a program in c++ to interchange 2 values without the 3rd variable.
Home
Education
write a program in c++ to interchange 2 values...
asked
Nov 26, 2021
in
Education
by
JackTerrance
write a program in c++ to interchange 2 values without the 3rd variable. Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Nov 26, 2021
by
JackTerrance
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
Q: Write a function that interchange and prints the value of two integers A and B without using
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: The value of a is 34 and the value of b is 79. Write a JAVA program to interchange the value of a an
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: C Write T for True and F for False2.1. The full form of GIF is Graphics Interchange Format.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: C Write T for True and F for False2.1. The full form of GIF is Graphics Interchange Format.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write algorithm and flowchart the inputs two numbers swaps these values without using third variable
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: 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)
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a c program to find largest and smallest among all elements of 2-d array.
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write error message given by C compiler during compilation if we use %d to print float variable
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: perimeter of circle in c program without argument with return type
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a java program to print areaof an equilateral triangle . (without using scanner)
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program to accept string from user and search a given character from string without using find() function
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: (i) x=5, y=6,2=20Q8) Consider the following statements and describe the output/statement required:(a) To retrieve the data type of the inputted string “Covid 19” stored inside the variable Disease.(b) x,y=”99″, “9”,Find the concatenated value of x and y and also retrieve the address of x and y.(c) Q= “Class XI” * 3
(i) x=5, y=6,2=20 Q8) Consider the following statements and describe the output/statement required: ... multiple assignment statements. Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write statements in QBASIC for each of the situations described below.(ii) Assign the value represented by variable N to the variable N1.(1) Assign a value 2 to the variable A.(iii) Assign “INDIA” to a variable A$.(iv) Assign the sum of the two variables X and Y to the variable z
Write statements in QBASIC for each of the situations described below. (ii) Assign the value represented by variable ... the variable A Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: How to write a program in JAVA to print the sum of ASCII values of a particular word input ?
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
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write C program that use both recursive and non recursive functions to perform Linear search for a Key value in a given list.
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
computer-science-interview-questions
computer-science-questions
...