title: predefined function for minimum
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/844990/is-there-a-convenient-function-in-objective-c-coca-touch-to-find-a-lowest-numbe">Is there a convenient function in objective-c / coca-touch to find a lowest number?</a>  </p>
  </blockquote>
  
  
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  int main (int argc, const char * argv[]) {
      NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  
      int a=10,b=5,c;
      c=min(a,b);
      NSLog(@"min:%d",c);
  
      [pool drain];
      return 0;
  }
  </code></pre>
  
  <p>I have to calculate the minimum value of two numbers.
  We can use if(a>b) to find out the minimum value.But is there any predefined function to calculate the minimum of two numbers.</p>