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
What does sizeof int return?
Explain what is the difference between the expression '++a' and 'a++'?
What is the difference between a string and an array?
How can my program discover the complete pathname to the executable from which it was invoked?
What is the benefit of using an enum rather than a #define constant?
The difference between printf and fprintf is ?
in iso what are the common technological language?
Write a program on swapping (100, 50)
What is modeling?
What language is windows 1.0 written?
Is it acceptable to declare/define a variable in a c header?
What are keywords in c with examples?
about c language
How do you search data in a data file using random access method?
Tell me when would you use a pointer to a function?