Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Implement strcmp

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


Please Help Members By Posting Answers For Below Questions

What is setbase c++?

1052


How can I disable the "echo" feature?

1089


What c++ is used for?

1011


Which field is used in c++?

1047


What is lvalue?

1131


What is iostream in c++ used for?

973


What are 2 ways of exporting a function from a dll?

1115


Can I run c program in turbo c++?

968


Explain selection sorting. Also write an example.

983


Define a pointer to a data member of the type pointer to pointer?

937


What kind of jobs can I get with c++?

1043


Can non graphic characters be used and processed in C++?

1132


Why is main function important?

1051


What are the defining traits of an object-oriented language?

1137


Explain data encapsulation?

1061