How to write a program for swapping two strings without
using 3rd variable and without using string functions.
Answer Posted / srinath, hyd
main()
{
int a=5,b=3;
a=a+b;
b=a-b;
a=a-b;
printf(" %d %d ",a,b);
getch();
}
| Is This Answer Correct ? | 7 Yes | 26 No |
Post New Answer View All Answers
Differentiate between static and dynamic modeling.
What are data structures in c and how to use them?
What are header files in c?
Is there a way to compare two structure variables?
How will you find a duplicate number in a array without negating the nos ?
Can a variable be both const and volatile?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
What is c++ used for today?
given post order,in order construct the corresponding binary tree
For what purpose null pointer used?
Differentiate between #include<...> and #include '...'
write a program to print largest number of each row of a 2D array
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Write a Program to find whether the given number or string is palindrome.
What is the use of pointers in C?