Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

two variables are added answer is stored on not for third
variable how it is possible?

Answer Posted / sujith

I am afraid i understood the question. If the question is
defined like, u need to exchange two variables without using
a temporary variable is,

a += b;
b = a - b;
a = a - b;
Another methos is ,
a ^= b ^= a ^= b;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is not a pointer null after calling free?

1017


List the difference between a While & Do While loops?

1098


Why isnt there a numbered, multi-level break statement to break out

1042


What are the three constants used in c?

993


How to compare array with pointer in c?

1102


What is modeling?

1047


What is the explanation for cyclic nature of data types in c?

1207


What is file in c language?

1000


When was c language developed?

1194


Write the syntax and purpose of a switch statement in C.

1100


How do you override a defined macro?

1262


Is there a built-in function in C that can be used for sorting data?

1251


What do you mean by dynamic memory allocation in c?

1098


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(); }

2305


Explain what is the benefit of using an enum rather than a #define constant?

1218