Possible duplicate:Is there a convenient feature in objective-c / coca-touch to find the lowest number?
#import <Foundation/Foundation.h> 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; }
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.
It has already been discussed. Objective-C includes a MIN (a, b) macro that should suit your needs.
Source: https://habr.com/ru/post/889948/More articles:Triad values ââ- is there an agreement? - language-agnosticPermission only to the local host to access the folder where all included php files exist - phpIs it safe to write mysql_connect ("localhost", "root", "mypasswd") to a file? - mysqlProguard retrace does not display stack trace to actual source - androidHow to create a SQL Server function to return an int? - sqlAny reason Mage :: registry ('current_category') returns NULL? - magentoSaving simple user preferences in Windows Forms using C # - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/889951/transform-3d-points-to-2d&usg=ALkJrhh0_MHjZCGCOhQo_Ey-cVLFWOjcjgDoes anyone have a great library for missing field helpers of MVC 3 html form? - c #Creating a dictionary on the fly using the [] operator - operatorsAll Articles