How to swap values between two variables without using a
third variable?
Answer Posted / gourab varma
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter value of a and b");
scanf("%d%d", &a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("the value of a=%d\n the value of b is=%d", a, b);
getch();
}
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
how do we provide security for web services
I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.
What is the use of sas software? Is sas and sap are different?
How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?
what is technical system, business system, logical system in sap pi7.0
what is the last ant version you worked?how to get it
what are stubs related to foxpro?
How to call dll API sub routine in VB Form.
any drawback are there in mantis?
Write a program to find whether a given number is prime or not.
When will you use shell script/Perl ahead of C/C++?
what is adodb??y it is used for connection of V.B and access??what is ado?dao?
How will you prove that java swing is multithreaded?
iam confused among testing ,.net and java. can anybody help me.
smal talk is pure object oriented or not?