How can u swap 2 variables in C without using 3rd variable?
Answers were Sorted based on User's Feedback
Answer / sj
main()
{
int a=20,b=30;
clrscr();
a=a+b;
b=a-b;
a=a-b;
printf("%d%d",a,b);
getch();
}
| Is This Answer Correct ? | 38 Yes | 4 No |
Answer / deepa
main()
{
int a=20,b=30;
clrscr();
b=a+b;
a=b-a;
b=b-a;
printf("%d%d",a,b);
getch();
}
| Is This Answer Correct ? | 5 Yes | 4 No |
Answer / 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 |
What types of code coverage do you know?
contents of test report
Suppose a defect is fixed by developer and that defect got closed. But because of fixing that defect we are getting another defect. If 2nd defect is fixed the 1st defect is reproduced again. If that process is continuing what should the tester do to nail that defect?
What are the principles of software testing?
difference between smoke and sanity testing? help me with the clear answer...
5 Answers Cap Gemini, Polaris,
How quickly we need to fix the bug? Or how soon the bug should get fixed?
what is testdata
what is configuration management...please explain... thanx
I have cleared written test and one Technical round in one company? now i have to face an Client Round through telephony? Any body have faced client round, how will it be , wil they ask technical or is it only formality round? im nervous, plz let me know wat all they may ask? i have this round on monday?
i have completed my graduation in B.Sc. (phy, maths,computer), right now i am having 1.6 yrs exp on manual testing, for PG full time course is full time course or parttime is suitable form me , if any one is suitable then why it is suitable
1.Enlist the types of testing performed for any window in sequence? 2.Use of edit_get_list function 3.Accuracy & Precision
Test cases for IE 6.0