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
Is c++ pass by reference or value?
What do you mean by global variables?
What is stack unwinding?
What are containers in c++?
What is c++ prototype?
What is unary operator? List out the different operators involved in the unary operator.
What is one dimensional array in c++?
What is token c++?
What is conditions when using boolean operators?
By using c++ with an example describe linked list?
If I is an integer variable, which is faster ++i or i++?
What are the extraction and insertion operators in c++?
Describe the process of creation and destruction of a derived class object?
What is a terminating character in c++?
Is it possible to write a c++ template to check for a function's existence?