How can u swap 2 variables in C without using 3rd variable?
Answer Posted / rahul
#include<stdio.h>
#include<conio.h>
void main()
{
int a=20,b=30,c;
clrscr();
a=a+b;
b=b+a;
c=a+b;
c=b-a;
printf("swapping two variables using 3rd variable");
scanf("%d%d%d,a,b,c);
getch();
}
| Is This Answer Correct ? | 2 Yes | 8 No |
Post New Answer View All Answers
What is manual testing and what is it process?
HI GUYS,, I HAVE 3 YEARS OF EXP IN MANUAL TESTING...NEXT MONTH ONWARDS I WORK FOR MOBILE TESTING....PLS SUGGEST ME WHAT I LEARN FOR TRAING,, MOBILE TESTING OR ANDROID....FOR MOBILE TESTERS NEED ANDROID(IFONE) DEVOLOPMENT KNOWLEDGE OR NOT? EXPLAIN CLEARLY
hi i want manual testing interview question(3+exp)please tell me
what is diffrence between dynamic black box testing and dynamic white box testing
what is fusion testing and impact analysis???
Tell me some Adhoc testing scenarios of ebay (online auction product)?
Need to know about Quality Center in brief
What are the different strategies for rollout to end users?
Inwhat basis the time is allocated for testing the application?
Who are all involved in an inspection meeting?
Q) Create Preffered customer: As a customer when i purchase more than $5000 in goods since my first purchase, I become a preffered customer so that i can receive the benefits associated with that status.
How do you estimate white box testing?
functional testing test cases for transfer funds ?
Why we have to do manual testing?
Why would we not include these?