How to write a program for swapping two strings without
using 3rd variable and without using string functions.
Answer Posted / sri
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 ? | 33 Yes | 42 No |
Post New Answer View All Answers
How can I copy just a portion of a string?
What is the use of putchar function?
code for quick sort?
Why is it usually a bad idea to use gets()? Suggest a workaround.
What are the primitive data types in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Explain what is a program flowchart and explain how does it help in writing a program?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is a pointer variable in c language?
Are the variables argc and argv are always local to main?
What is exit() function?
What does sizeof int return?
In C language, a variable name cannot contain?
What is the benefit of using an enum rather than a #define constant?
Is return a keyword in c?