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
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Explain how can you restore a redirected standard stream?
What is boolean in c?
What are the valid places to have keyword “break”?
How to write a multi-statement macro?
Define Array of pointers.
how to build a exercise findig min number of e heap with list imlemented?
How do you print only part of a string?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is the use of extern in c?
Difference between macros and inline functions? Can a function be forced as inline?
What is derived datatype in c?
If errno contains a nonzero number, is there an error?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Explain what is the difference between #include and #include 'file' ?