Thread: What's the syntax for NOT greater than?

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    102

    What's the syntax for NOT greater than?

    Helo. Just asking what's the syntax for not greater than. Is it

    1. i!>j;
    2. !(i>j);

    or else. TY

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    The first isn't even a valid expression, so you have your answer.

    EDIT: Also note that "Not greater than" can be aliased as "Lower than or equal to"
    3. i <= j
    Last edited by GReaper; 02-23-2012 at 12:34 AM.
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Aug 2011
    Posts
    102
    Quote Originally Posted by GReaper View Post
    The first isn't even a valid expression, so you have your answer.

    EDIT: Also note that "Not greater than" can be aliased as "Lower than or equal to"
    3. i <= j
    OO ok. thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. factorial for values greater than 16
    By jas_atwal in forum C Programming
    Replies: 8
    Last Post: 01-21-2008, 06:46 PM
  2. Greater than, less than
    By Extropian in forum C Programming
    Replies: 3
    Last Post: 06-09-2005, 11:13 AM
  3. switch statements with greater/less than operators
    By Munkey01 in forum C++ Programming
    Replies: 7
    Last Post: 02-13-2003, 12:59 PM
  4. Memory allocation greater than 64KB in TC 3.0
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 01-27-2002, 10:28 AM
  5. making less than and greater than work
    By mikezmr2 in forum C++ Programming
    Replies: 3
    Last Post: 09-19-2001, 07:40 PM