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


Please Help Members By Posting Answers For Below Questions

What is a pointer variable in c language?

649


Write a progarm to find the length of string using switch case?

1614


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

1742


The __________ attribute is used to announce variables based on definitions of columns in a table?

675


what do you mean by inline function in C?

620






What is structure and union in c?

605


Differentiate between calloc and malloc.

762


Explain how can you be sure that a program follows the ansi c standard?

869


Explain 'bit masking'?

657


What is variable and explain rules to declare variable in c?

558


How old is c programming language?

582


What are the advantages and disadvantages of a heap?

716


Explain what are the advantages and disadvantages of a heap?

599


Write a program of advanced Fibonacci series.

711


What is the process to generate random numbers in c programming language?

614