#define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
{
int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
}
int swap2(int a,int b)
{
int temp;
temp=a;
b=a;
a=temp;
return;
}
what are the outputs?
Answer Posted / chitra
10 5
5 5
| Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
What is the purpose of sprintf() function?
Where are some collections of useful code fragments and examples?
Explain what is the difference between null and nul?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
How can I implement a delay, or time a users response, with sub-second resolution?
Explain what is the difference between a string and an array?
What are pointers? What are stacks and queues?
The file stdio.h, what does it contain?
Explain low-order bytes.
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Is there a built-in function in C that can be used for sorting data?
How do I read the arrow keys? What about function keys?
What is struct node in c?
What is the importance of c in your views?