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
How can you determine the maximum value that a numeric variable can hold?
Explain how can type-insensitive macros be created?
What are qualifiers?
What does return 1 means in c?
What does *p++ do?
Explain what is the benefit of using an enum rather than a #define constant?
What's the total generic pointer type?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Why do we use int main instead of void main in c?
Why do some versions of toupper act strangely if given an upper-case letter?
What are the advantage of c language?
How do I convert a string to all upper or lower case?
How can I get back to the interactive keyboard if stdin is redirected?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
How can I open files mentioned on the command line, and parse option flags?