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
What is an lvalue in c?
How can I handle floating-point exceptions gracefully?
What is the difference between array and pointer?
What are local static variables?
Differentiate between calloc and malloc.
What is difference between static and global variable in c?
How do you generate random numbers in C?
how to find anagram without using string functions using only loops in c programming
How can you return multiple values from a function?
How can I write a function analogous to scanf?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Can you write the function prototype, definition and mention the other requirements.
Explain how do you print an address?
In which header file is the null macro defined?
Explain how can you restore a redirected standard stream?