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
How new/delete differs from malloc()/free?
Why are pointers used?
What is virtual destructor? What is its use?
What is type of 'this' pointer? Explain when it is get created?
Explain the register storage classes in c++.
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)
Why do we use using namespace std in c++?
What is vector processing?
Can malloc be used in c++?
What are the uses of c++ in the real world?
What is an operator in c++?
What is public, protected, private in c++?
What is a pointer how and when is it used?
Explain the concept of friend function in c++?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..