swap two no without using third variable

Answer Posted / thunder

/* swapping two numbers without using temp*/
#include<stdio.h>
int main()
{
int a=10,b=5;
a=a*b;
b=a/b;
a=a/b;
print f("a : %d b: %d",a,b);
}

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

create a .dll component operation and use created component in another project. required methods events and properties. connect, add,search,data report

2183


how exactly is the lngColour used?

1878


Write a script to delete all the files in a folder except one desired file.

1001