Macros Rookie Programmer
<p>I had a lab class this was the question can some one correct this program/it runs corretcly but when its output is wrong. It basically must print the smallest of the three conditions, here's the question:</p>

<blockquote>
  <p>Write a program that defines a macros <code>minimum2</code> to determine the smaller of two numeric values. Then use minimum two to compare a third macros that should be define name minimum three to determine the smallest number.</p>
</blockquote>

<p>This is the code I wrote, it has two errors code has no effect and <code>e</code> is assign a value that is never used:</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

#define minimum2(a,b)(a &lt; b)?a:b
#define minimum3(a,b,c) minimum2(a,b) &lt; c? minimum2(a,b):c

int main()
{
   int  c = 3, d = 4, e = 2;
   minimum3(c, d, e);
   getch();
   return 0;
}
</code></pre>

<p>Please help me I have a test soon and would be grateful for that.</p>
