#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
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
Is null a keyword in c?
What are pointers? What are different types of pointers?
What are the rules for identifiers in c?
Explain what does a function declared as pascal do differently?
What are keywords in c with examples?
Explain the difference between getch() and getche() in c?
What are compound statements?
What is difference between static and global variable in c?
What is new line escape sequence?
Explain how can a program be made to print the line number where an error occurs?
How can I find the modification date of a file?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Write a program to print all permutations of a given string.
Is fortran faster than c?