Write a program which uses functions like strcmp(), strcpy()? What are the advantages of using typedef in a program?

Showing Answers 1 - 2 of 2 Answers

sathishkumarR

  • Nov 6th, 2007
 

strcpy() functions is mainly used in string comparison
strcpy()functions is mainly used in string copy operation

  Was this answer useful?  Yes

sathishkumarR

  • Nov 6th, 2007
 

strcmp() is used to string comparision.strcpy() is used to string copy...
strcmp1("India");
strcmp2("India");
strcmp3("india");
if(strcmp1==strcmp2)
string is equal
else
if(strcmp1!=strcmp3)
string is not equal
strcpy

strcpy1("In");

strcpy2("dia");

strcpy3(strcpy1&&strcpy2)
output india

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions