#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 / mannucse
10 5
5 10
| Is This Answer Correct ? | 9 Yes | 10 No |
Post New Answer View All Answers
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Describe wild pointers in c?
I need previous papers of CSC.......plz help out by posting them.......
How do I get an accurate error status return from system on ms-dos?
What is a pointer and how it is initialized?
hi send me sample aptitude papers of cts?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
Why c is called top down?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
write a program for the normal snake games find in most of the mobiles.
How variables are declared in c?
what are the advantages of a macro over a function?
Does * p ++ increment p or what it points to?
Explain what is the stack?
Is null always defined as 0(zero)?