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
Explain how can I write functions that take a variable number of arguments?
Where are the auto variables stored?
What is printf () in c?
how to build a exercise findig min number of e heap with list imlemented?
What is function prototype in c with example?
c language interview questions & answer
What are type modifiers in c?
What is the right way to use errno?
Is that possible to store 32768 in an int data type variable?
difference between object file and executable file
What is pointer and structure in c?
Can stdout be forced to print somewhere other than the screen?
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
What is adt in c programming?
Tell me about low level programming languages.