Answer Posted / sanjith
#inclde<string.h>
int d;
class test
public: void read()
void cmb()
};
void test::read()
{ cout<<"Enter the first string:";
cin>>s1;
cout<<"Enter the second string";
cin>>s2;
}
void test::cmb()
{
d=strcmp(s1,s2);
}
main()
{
test t1,t2;
t1.read();
t2.cmb();
t2.print();
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is a singleton class c++?
Is linux written in c or c++?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
Which field is used in c++?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
In c++, what is the difference between method overloading and method overriding?
What is the v-ptr?
What is the difference between the functions memmove() and memcpy()?
What is the advantage of c++ over c?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
Is java the same as c++?
Describe the process of creation and destruction of a derived class object?
What do you know about near, far and huge pointer?
How did c++ get its name?
How do we balance an AVL Tree in C++?