How can we check whether the contents of two structure variables are same or not?

Showing Answers 1 - 1 of 1 Answers

satish_sudi

  • Jun 25th, 2007
 

There is no way you can compare the two structure variables.
for Ex:

stucture test a, b;
     if (a == b)   // is wrong, we can't compair structure as whole.

Instread, we should compare individual members of the structures.

  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