write a program to swap Two numbers without using temp variable.
Answer Posted / rani
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf ("enter the values to a & b");
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("%d%d",a,b);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain how can I write functions that take a variable number of arguments?
Can you write the function prototype, definition and mention the other requirements.
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What does. int *x[](); means ?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Explain the properties of union. What is the size of a union variable
When should the const modifier be used?
What is pointer and structure in c?
What are the types of pointers in c?
What are the advantages of external class?
Is sizeof a keyword in c?
Which is the best website to learn c programming?
why programs in c are running with out #include
Is null a keyword in c?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }