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
What is structure in c language?
Can you return null in c?
Write a program to print "hello world" without using a semicolon?
Write a program that accept anumber in words
Explain which function in c can be used to append a string to another string?
What are register variables? What are the advantage of using register variables?
Can a file other than a .h file be included with #include?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
What are the disadvantages of c language?
Why is extern used in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What functions are used in dynamic memory allocation in c?
Difference between constant pointer and pointer to a constant.