swapping program does not use third variable

Answer Posted / jayabalan.s

void main()
{
int a,b;//example a=10,b=12;
a=a+b;//a=22
b=a-b;//b=10;
a=a-b;//a=12
}

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use polymorphism?

653


How many human genes are polymorphic?

660


What does and I oop mean in text?

731


What do you mean by overloading?

679


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1882






What is encapsulation oop?

672


What is oops and its features?

697


Is react oop?

708


What is inheritance in oop?

682


What does it mean when someone says I oop?

679


What are the types of abstraction?

642


How to hide the base class functionality in Inheritance?

738


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6245


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2674


What is difference between polymorphism and inheritance?

704