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 / ramu pasupuleti

#include<stdio.h>
#include<conio.h>
{
printf("enter a,b values");
a=a+b;
a=a-b;
b=a-b;
printf("%d%d",a,b);
getch();
}

Is This Answer Correct ?    2 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you invoke another program from within a C program?

1119


Write a program to check whether a number is prime or not using c?

1101


Explain what is gets() function?

1116


What are shell structures used for?

1093


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

2522


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1132


what are bit fields in c?

1817


What are the keywords in c?

1171


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

1206


Subtract Two Number Without Using Subtraction Operator

903


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1044


What are the 5 types of organizational structures?

1132


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

4357


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1426


How do you declare a variable that will hold string values?

1227