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 is c method?
Explain what’s a signal? Explain what do I use signals for?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Why does this code crash?
what is the height of tree if leaf node is at level 3. please explain
What is a program flowchart and how does it help in writing a program?
How can a program be made to print the line number where an error occurs?
How can a process change an environment variable in its caller?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Are bit fields portable?
How are pointers declared in c?
write a c program for swapping two strings using pointer
Write a program to print factorial of given number without using recursion?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
Why doesnt this code work?