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 |
Write a test case scenario for Web-based address book?
Describe Testing Decomposition?
What is Recovery Testing in Testing the TV
What is test out put?
What is diff between Reliability Testing and Recovery Testing ?
What are the disadvantages of overtesting?
what are the risks involved in testing ?
What is difference between http and https
What are the RBI rules has to follow by a bank for online precesseing. ?
What are the concepts of networking and database ,a software tester should know?
Suppose u found a bug which a developer could not reproduce and it is reproducing on your pc whenever tried , then in this siyuation what will be the status of the bug, and what u r going to do for that bug.
4 Answers Flextronics, Syntel,
You may be overqualified for this position we have to offer