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
What are the loops in c?
What does void main return?
What is else if ladder?
What is a macro, and explain how do you use it?
How do I copy files?
Write a function that will take in a phone number and output all possible alphabetical combinations
What is function prototype in c language?
How can you pass an array to a function by value?
How to compare array with pointer in c?
Is that possible to add pointers to each other?
What standard functions are available to manipulate strings?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
How do you list files in a directory?
Explain what are compound statements?
What is structure of c program?