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 the relation between all tabs in quality center & explain the testing process in quality center with tabs?
What is test data
Hi,I am new to software testing. My question is, What can be the possible test cases one can write for a chair
What is Equivalence partitioning,Boundary value analysis,Decision table testing,State transition testing,Use case testing. Plz explain with example and differences if any
What is your approach when requirements change continuously?
online demo for bug tracker tool(let me know the website)
1.how you know all test cases are cover in one application? 2.what is difference between error message and warning message ? 3.what are the items comes under traceabily materix?
what is JAVA TESTING? What Testers will do in JAVA Testing. Can any one Give suitable Ans Pls. it's urgent
Can any one suggest how to write the bug reports effectively by optimizing what we want to describe?
How to write Negative test cases?
12 Answers CarrizalSoft Technologies, Infosys, Microsoft, Ybrant Technologies,
what to test in usability testing.?
when will you do the requirement analysis?