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 spaghetti programming?
Can a function argument have default value?
What are register variables? What are the advantage of using register variables?
Explain how do you generate random numbers in c?
Define recursion in c.
what is the significance of static storage class specifier?
Explain the difference between malloc() and calloc() in c?
Write a program to find factorial of a number using recursive function.
what is uses of .net
Is multithreading possible in c?
Are bit fields portable?
what is a constant pointer in C
When should I declare a function?
Calculate 1*2*3*____*n using recursive function??
What is cohesion and coupling in c?