How to write a program for swapping two strings without
using 3rd variable and without using string functions.
Answer Posted / ramu pasupuleti
#include<stdio.h>
#include<conio.h>
{
printf("enter a,b values");
a=a+b;
a=a-b;
b=a-b;
printf("%d%d",a,b);
getch();
}
Is This Answer Correct ? | 2 Yes | 18 No |
Post New Answer View All Answers
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is anagram in c?
What is the use of pointers in C?
Why is c fast?
What is a pointer on a pointer in c programming language?
Is malloc memset faster than calloc?
Is the exit() function same as the return statement? Explain.
what are enumerations in C
What does %p mean?
What is uint8 in c?
Explain what are the __date__ and __time__ preprocessor commands?
Explain what does the function toupper() do?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What is the difference between text files and binary files?
What is far pointer in c?