Conditional Statements in C

  • + 2 comments

    this is more compact :d printf( "%s", n <= 9 && n >= 1 ? strings[n-1]: "Greater than 9" ); //damn sounds like python xD edit: i don't remember that C could have conditional operator in printf function O_o thought it was only possible in python :D anyways, it works and that's all that matters