Concat two string with most overlapped substring has to
removeĀ "abcd"+ "cdef" = "abcdef
Answer Posted / om
@Ashwin Kumar
According to your program....
char *a="abcdcdcd";
char *b="cdef";
output is "abcdef"..//which is wrong.....it should be abcdcdef
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is the deal on sprintf_s return value?
How do you sort filenames in a directory?
Why do we need functions in c?
Write a program for finding factorial of a number.
What functions are used for dynamic memory allocation in c language?
What are run-time errors?
Describe the difference between = and == symbols in c programming?
What is the use of printf() and scanf() functions?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
What do you mean by dynamic memory allocation in c? What functions are used?
How do I use void main?
Can you subtract pointers from each other? Why would you?
How to find a missed value, if you want to store 100 values in a 99 sized array?
How is a structure member accessed?