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 is Test Data?. When we prepare test data?, is it included in Test Cases or should it be seperately prepared. What and when will be the actual use of Test Data and who prepares it.
What agile testing? how it is process?
What is mean by Defect Injection?,Tell me in brife
What is actually a rule based testing
Tell me about the best bug you ever found.
diff b/w stress testing and load testing?
1.Difference between System Testing and UAT 2.Difference between Load, Stress, Volume and Performance Testing. 3.Difference Between Integration testing and System Testing 4.Difference between Bug and Defect 5.Difference between Use Case and Test Case 6.Difference between Test Plan and Test Strategy 7.Difference between Test Scenario and Test Case 8.Difference between SRS and FRS 9.What are the difference b/w client & server? 10.explain test case template? 11.explain test plan template? 12.explain testing process? 13.explain bug report template? 14.what is scenario? 15.what is criteria?What are test entry and test exit criteria? 16.what is test strategy? 17.what is baseline? 18.what is hotfix? 19.what is Inspection,Walkthrough,Review,Audits 20.what is Stress Testing,Volume Testing,Sanity Testing 21.what is QA and QC? 22.Explain V-Model and Stages? What is Adv And DisAdv? 23.What is Boundary Value Analysis? 24.What is Equivalence Partitioning? 25.What is Error Guessing ? 26.What is Cause Effect Graphing techniques? 27.What is Bug , Defect and Error? 28.How will you report the bug? 29.What are the different test deliverables? Which deliverable we need to submit at the end of testing? 30.What methodologies have you used to develop test cases? 31.How you will close the defect? 32.What is meant by the bug state "Reproduce"? 33.What is change request?How do you handle change requests ? 34.what type of documents do u prepare during testing? 35.what are the testing methodologies? 36.What is release notes? 37.what is Response Time? 38.What report u generate after completing testing? 39.What is Test Bed? 40.Example for a bug having high severity and low priority? 41.Give me examples for high priority and low severity defects?
What are the different ways to check a date field in a website?
what is mask testing?
Differences Between Whitebox testing and Blackbox testing
21 Answers CSC, IBM,
What is defect WITHDRAW? When you do this?
What are the ways to check memory leak?