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

How new/delete differs from malloc()/free?

1145


Why are pointers used?

1008


What is virtual destructor? What is its use?

1076


What is type of 'this' pointer? Explain when it is get created?

1017


Explain the register storage classes in c++.

1188


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

1056


Why do we use using namespace std in c++?

1084


What is vector processing?

1150


Can malloc be used in c++?

1082


What are the uses of c++ in the real world?

1038


What is an operator in c++?

1068


What is public, protected, private in c++?

1154


What is a pointer how and when is it used?

1098


Explain the concept of friend function in c++?

1118


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3850