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
Difference between Function to pointer and pointer to function
Explain what is the benefit of using const for declaring constants?
How can I handle floating-point exceptions gracefully?
What is the auto keyword good for?
What is the use of sizeof?
Explain the difference between malloc() and calloc() in c?
Can you please explain the scope of static variables?
For what purpose null pointer used?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
Where define directive used?
Is c is a low level language?
What are the types of type qualifiers in c?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
What’s the special use of UNIONS?
Why is python slower than c?