WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
Answer Posted / 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 |
Post New Answer View All Answers
What is for loop and its syntax?
What are objects in oop?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is a class and object?
Who invented oop?
What are two types of polymorphism?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What does <> mean pseudocode?
how to get the oracle certification? send me the answer
What is class and object with example?
What is inheritance write a program to show use of inheritance?
Can you explain polymorphism?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is advantage of inheritance? What is inheritance in oop?