write a program to swap Two numbers without using temp variable.
Answer Posted / niharika
class java
1.b=(a+b)-(a=b);
2.a^=b^=a^=b;
3.a=a+b;
b=a-b;
a=a-b;
4.a=a*b;
b=a/b;
a=a/b;
rohanraju143@gmail.com from NIT Waramgal
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the meaning of 2d in c?
Explain what are binary trees?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
What is the sizeof () a pointer?
What is the difference between NULL and NUL?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is nested structure?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Write a Program to accept different goods with the number, price and date of purchase and display them
What does return 1 means in c?
Can we declare a function inside a function in c?
What are the types of data structures in c?
What do you mean by a local block?
What is c variable?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?