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

I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

2029


What do you mean by overhead in c++?

1044


Explain container class.

1196


What is a modifier in c++?

1093


What is using namespace std in cpp?

1084


What is class syntax c++?

1103


How would you use the functions randomize() and random()?

1035


What is an adjust field format flag?

1075


Is c++ used anymore?

1047


What is malloc in c++?

978


What are the two types of comments, and how do they differ?

1062


Explain terminate() function?

1017


What are arrays c++?

1063


Tell me can a pure virtual function have an implementation?

979


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

987