How to write a program for swapping two strings without
using 3rd variable and without using string functions.
Answer Posted / biswambar
main()
{
int a=5,b=3;
b=a+b;
a=b-a;
b=b-a;
printf(" %d %d ",a,b);
}
Is This Answer Correct ? | 44 Yes | 54 No |
Post New Answer View All Answers
What is a pointer variable in c language?
Write a progarm to find the length of string using switch case?
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
The __________ attribute is used to announce variables based on definitions of columns in a table?
what do you mean by inline function in C?
What is structure and union in c?
Differentiate between calloc and malloc.
Explain how can you be sure that a program follows the ansi c standard?
Explain 'bit masking'?
What is variable and explain rules to declare variable in c?
How old is c programming language?
What are the advantages and disadvantages of a heap?
Explain what are the advantages and disadvantages of a heap?
Write a program of advanced Fibonacci series.
What is the process to generate random numbers in c programming language?