#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 / goodhunter
10 5
10 5
Is This Answer Correct ? | 20 Yes | 2 No |
Post New Answer View All Answers
Write a program to identify if a given binary tree is balanced or not.
How can I manipulate individual bits?
Where are c variables stored in memory?
What are identifiers in c?
What is the value of h?
what is bit rate & baud rate? plz give wave forms
What is ponter?
Can you please explain the scope of static variables?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Explain bit masking in c?
what are # pragma staments?
What is structure in c language?
What is a function in c?
What is non linear data structure in c?
What is the purpose of ftell?