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
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Is that possible to store 32768 in an int data type variable?
What does stand for?
What are the 5 data types?
What are different types of pointers?
What is array within structure?
What are # preprocessor operator in c?
How does selection sort work in c?
What are c header files?
What is the most efficient way to store flag values?
What is the modulus operator?
How to define structures? ·
How can I do peek and poke in c?
What are header files in c programming?
What is an identifier?