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...

how to swap two integers 1 and 32767 without using third
variable

Answer Posted / vidhubala-j

int a=1
int b=32767
a^=b^=a
printf("%d %d",a,b);

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the scope of global variable in c?

965


Why void main is used in c?

1016


Why is c known as a mother language?

1198


When is a void pointer used?

1201


What is sorting in c plus plus?

945


Explain what is the benefit of using enum to declare a constant?

1037


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2733


What is data type long in c?

1035


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2514


Write a program on swapping (100, 50)

1076


How are Structure passing and returning implemented by the complier?

1128


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

1283


What is wild pointer in c?

1034


What are logical errors and how does it differ from syntax errors?

1245


Explain null pointer.

1056