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
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What is the use of a static variable in c?
Does c have enums?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
What is the use of sizeof?
What is chain pointer in c?
Is it possible to have a function as a parameter in another function?
Is that possible to add pointers to each other?
Explain the red-black trees?
what are the facialities provided by you after the selection of the student.
What are global variables and explain how do you declare them?
What are the ways to a null pointer can use in c programming language?
What is array in c with example?
How can I open a file so that other programs can update it at the same time?