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 write a program for swapping two strings without
using 3rd variable and without using string functions.

Answer Posted / biswambar

main()
{
int a=5,b=3;
b=a+b;
a=b-a;
b=b-a;
printf(" %d %d ",a,b);
}

Is This Answer Correct ?    44 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is event driven software and what is procedural driven software?

2589


What is the symbol indicated the c-preprocessor?

1256


Is null valid for pointers to functions?

1182


What is a ternary operator in c?

1127


What are data structures in c and how to use them?

1175


What is an auto variable in c?

1244


How do you sort filenames in a directory?

1185


Why we use int main and void main?

1085


What is 1d array in c?

1101


Why is c called a mid-level programming language?

1213


Explain the ternary tree?

1033


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1351


What tq means in chat?

1130


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

1107


When would you use a pointer to a function?

1055