int isgreater(a, b): Returns nonzero if a is greater than b. : isgreater « math.h « C Tutorial






#include <stdio.h>
#include <math.h>

int main(void)
{
  printf("isgreater(1.0, 2.0) %d\n", isgreater(1.0, 2.0));
  printf("isgreater(1.0, 1.0) %d\n", isgreater(1.0, 1.0));
  printf("isgreater(2.0, 1.0) %d\n", isgreater(2.0, 1.0));
  return 0;
}
isgreater(1.0, 2.0) 0
isgreater(1.0, 1.0) 0
isgreater(2.0, 1.0) 1








19.31.isgreater
19.31.1.int isgreater(a, b): Returns nonzero if a is greater than b.