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

write a program to swap Two numbers without using temp variable.

Answer Posted / bhokal

#include <stdio.h>
#include <stdlib.h>

void main()
{
int p,r;
printf("enter no to b swaped:\n");
scanf("%d%d",&p,&r);
printf("swapped no . are\n%d\n%d\n",r,p);
getch();
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c is called top down?

1089


Can you please explain the difference between syntax vs logical error?

1132


What is the role of && operator in a program code?

1014


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

1191


What is string length in c?

1022


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1168


Write a program to print "hello world" without using a semicolon?

1002


Is linux written in c?

986


How can a string be converted to a number?

962


Explain which function in c can be used to append a string to another string?

1035


What header files do I need in order to define the standard library functions I use?

995


What is LINKED LIST? How can you access the last element in a linked list?

1015


Differentiate between calloc and malloc.

1218


Where register variables are stored in c?

906


What is the size of array float a(10)?

1088