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 |
hi guys...every test engineer have strong knowledge on SQL....but i have zero knowledge on sql......pls suggest me which one i need.. to get strong knoledge on sql .... learn SQL SERVER or ORACLE?
What is test case of dustbin ?
5 Answers Campus Interview, eXtensible IT Solutions, Hewitt, TCS,
is script is same like test cases?
what are 6 microsoft rules used for user interface testing?
What is the diff betwn Functional nad regression testing and do u excute same test case or write new one for regression
what are the parameters use to write the test plan document?
please give me the template of tracebility matrix ? i need whicch is commanly used in real time...
1.What is the difference between QA and verfication? 2.What is the difference between QA and verfication? 3.what is the difference between teststrategy and test methodologies? 4.what is the difference between teststrategy and test methodologies?
Hi there, I am new to the world of testing. Is there any place where I can have a look at an actual specification documents or test plans or test cases. This will help me in generating a level of confidence. Looking forward to your replies
what is the need of white box tesing before doing black box testing?
anyone ca explain Tracebility metrics.how to involve on this.
can you please tell me what is test script ..with example what is the difference between test script and test cases