cannot be applied to operands of type 'int' and 'int'"
<p>My C# code:</p>

<pre><code>public int printallancestor(Node root, Node key)
{
     if(root == null)
          return 0;
     if(root == key)
          return 1;
     if(printallancestor(root.leftChild,key)||printallancestor(root.rightChild,key))
     {
          Console.WriteLine(root.iData);
          return 1;
     }
     return 0;
}
</code></pre>

<p>The following line <code>if(printallancestor(root.leftChild,key)||printallancestor(root.rightChild,key))</code> from above code i get following error <strong>cannot be applied to operands of type 'int' and 'int'</strong>. What is wrong with this?</p>
