WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
Answers were Sorted based on User's Feedback
Answer / vinodhini r
main()
{
int a,b;
scanf("%d %d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("%d %d",a,b);
}
| Is This Answer Correct ? | 26 Yes | 2 No |
Program to check whether a word is in all capital letters
WAP find square root of any number (without using sqrt() )?
What are generic functions and generic classes?
write a program that takes input in digits and display the result in words from 1 to 1000
what is multi level inheritance give n example ?
13 Answers HDFC, Hulas Steel, Ness Technologies,
What is the main purpose of inheritance law?
What is public, protected, private?
Why do we use class?
Why do we use class in oops?
define oops with class and object
explain sub-type and sub class? atleast u have differ it into 4 points?
what is the use of classes in c++;