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 determine the maximum value that a numeric variable can hold?

633


Explain how can type-insensitive macros be created?

570


What are qualifiers?

615


What does return 1 means in c?

579


What does *p++ do?

581






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

714


What's the total generic pointer type?

608


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

637


Why do we use int main instead of void main in c?

613


Why do some versions of toupper act strangely if given an upper-case letter?

627


What are the advantage of c language?

548


How do I convert a string to all upper or lower case?

624


How can I get back to the interactive keyboard if stdin is redirected?

663


What is the time and space complexities of merge sort and when is it preferred over quick sort?

673


How can I open files mentioned on the command line, and parse option flags?

587