swap two integer variables without using a third temporary
variable?
Answer Posted / onkar koparde
i'll only give u logic #include<stdio.h>
void main() { int a=10,b=20;
printf("b4 swap:a=%d b=%d",a,b);
a=a+b;b=a-b;a=a-b; printf("aftr
swap:a=%d b=%d",a,b); }
from-onkar.koparde@gmail.com
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
How can I send mail from within a c program?
What is the explanation for modular programming?
What does double pointer mean in c?
Is c compiled or interpreted?
How is a structure member accessed?
What is a struct c#?
What is chain pointer in c?
Explain heap and queue.
What does == mean in texting?
Can we initialize extern variable in c?
Explain how do you print an address?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What are the 5 elements of structure?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What are inbuilt functions in c?