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
Do you know what are bitwise shift operators in c programming?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What do you mean by recursion in c?
Explain how do you determine the length of a string value that was stored in a variable?
What are the different properties of variable number of arguments?
What is break statement?
Tell me what is null pointer in c?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is meant by gets in c?
Why pointers are used?
What are the advantages of Macro over function?
What are actual arguments?
How can you find the exact size of a data type in c?
I have seen function declarations that look like this
what are the facialities provided by you after the selection of the student.