write a program to swap Two numbers without using temp variable.
Answer Posted / prashant
b=a+b;
a=b-a;
b=b-a;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain what is the difference between the expression '++a' and 'a++'?
What does the && operator do in a program code?
What are terms in math?
What type is sizeof?
Describe how arrays can be passed to a user defined function
What is a good data structure to use for storing lines of text?
Explain logical errors? Compare with syntax errors.
Tell me can the size of an array be declared at runtime?
What is "Duff's Device"?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
What are local static variables? How can you use them?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What are the features of c language?
Are pointers integer?