Salut,

je suis tombé sur un truc bizarre. Du coup je vous propose un petit exercice amusant.
Prenons le code suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
int main() 
{
   int i = -1;
   unsigned int j = 1;
   if ( i < j ) 
      std::cout << " i is less than j";
   else
      std::cout << " i is greater than j";
   return 0;
}
Question: quel est l'output console ?