code for concatination of 2 strings with out using library
functions?

Answer Posted / chavidi

void main()
{
char a[20],b[20];
int i,j,k;
gets(a);
gets(b);
i=strlen(a);
k=i+strlen(b);
j=0;
while(i<=k)
{
a[i]=b[j];
i++;
j++;
}
printf("Resultant String is %d :",a);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a Program to accept different goods with the number, price and date of purchase and display them

5424


What is masking?

627


What is a static variable in c?

657


What are header files? What are their uses?

629


What are the different categories of functions in c?

639






List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2296


What is the difference between struct and typedef struct in c?

638


What are the main characteristics of c language describe the structure of ac program?

604


What is a pointer and how it is initialized?

594


What do you mean by invalid pointer arithmetic?

625


What do header files do?

595


What are the features of c languages?

616


Why isnt any of this standardized in c?

625


write a program to rearrange the array such way that all even elements should come first and next come odd

1751


Is that possible to store 32768 in an int data type variable?

685