write a program to swap Two numbers without using temp variable.
Answer Posted / riyaz
int a, b;
printf("a=");
scanf("%d",&a);
printf("b=");
scanf("%d",&b);
printf("a = %d\nb = %d\n",b,a);
return 0;
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
a value that does not change during program execution a) variabe b) argument c) parameter d) none
How can I write a function analogous to scanf?
What is difference between arrays and pointers?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
What is difference between far and near pointers?
What is meant by errors and debugging?
What are the benefits of organizational structure?
In c programming language, how many parameters can be passed to a function ?
Why doesn't C support function overloading?
Why is c so important?
Is register a keyword in c?
Explain how can I convert a string to a number?
Explain two-dimensional array.
What is the meaning of && in c?
program for reversing a selected line word by word when multiple lines are given without using strrev