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 time h in c++?
What is a constructor and how is it called?
List the special characteristics of constructor.
A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.
Is c++ pass by reference or value?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What are dynamic type checking?
What is a singleton class c++?
Explain how we implement exception handling in c++?
What is overloading unary operator?
What is atoi in c++?
What is a driver program?
What is a .lib file in c++?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
What are the extraction and insertion operators in c++? Explain with examples.