a C prog to swap 2 no.s without using variables just an
array?

Answer Posted / karthik

void main()
{
int a=10,b=20;
a^=b^=a^=b;
printf("a=%d,b=%d",a,b)
getch();
}

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I write functions that take a variable number of arguments?

619


Where are the auto variables stored?

626


What is printf () in c?

580


how to build a exercise findig min number of e heap with list imlemented?

1614


What is function prototype in c with example?

583






c language interview questions & answer

1465


What are type modifiers in c?

625


What is the right way to use errno?

625


Is that possible to store 32768 in an int data type variable?

694


difference between object file and executable file

6099


What is pointer and structure in c?

576


Can stdout be forced to print somewhere other than the screen?

627


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

663


What is adt in c programming?

613


Tell me about low level programming languages.

648