Answer Posted / shanmugavalli
int strcmp(const char *src, const char *dest)
{
while (*src && *dest && (*src==*dest))
{
src++;
dest++;
}
return (*src-*dest);
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is setbase c++?
How can I disable the "echo" feature?
What c++ is used for?
Which field is used in c++?
What is lvalue?
What is iostream in c++ used for?
What are 2 ways of exporting a function from a dll?
Can I run c program in turbo c++?
Explain selection sorting. Also write an example.
Define a pointer to a data member of the type pointer to pointer?
What kind of jobs can I get with c++?
Can non graphic characters be used and processed in C++?
Why is main function important?
What are the defining traits of an object-oriented language?
Explain data encapsulation?