write a program to swap Two numbers without using temp variable.
Answer Posted / sweety
main()
{
int a=2,b=3;
a=a+b;
b=a-b;
a=a-b;
printf("%d",&a);
printf("%d",&b);
getch();
}
| Is This Answer Correct ? | 72 Yes | 27 No |
Post New Answer View All Answers
Is c call by value?
What is function prototype?
What are the characteristics of arrays in c?
What is pragma in c?
When is a void pointer used?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Do you know the difference between malloc() and calloc() function?
How do you define a string?
How to find a missed value, if you want to store 100 values in a 99 sized array?
formula to convert 2500mmh2o into m3/hr
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Explain union. What are its advantages?
What is the use of putchar function?
What is the use of linkage in c language?
Explain what is output redirection?