write a program to swap Two numbers without using temp variable.

Answer Posted / harika

main()
{
int a=2,b=3;
a^=b^=a^=b;
printf("%d,%d",a,b);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain c preprocessor?

854


the question is that what you have been doing all these periods (one year gap)

1830


What are multidimensional arrays?

846


What does p mean in physics?

783


what are bit fields? What is the use of bit fields in a structure declaration?

1749






What is the difference between pure virtual function and virtual function?

837


Why c is called object oriented language?

790


What is floating point constants?

869


how we can make 3d venturing graphics on outer interface

4320


Write a program with dynamically allocation of variable.

824


What is structure of c program?

782


Explain the use of 'auto' keyword in c programming?

877


Explain goto?

889


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

3712


What are pointers? What are different types of pointers?

802