I came through this code snippet while I was referring to C++ multiple-choice questions. Previously I used only && or || for combining multiple conditions, but this code uses ',':
using namespace std;
int main()
{
   int i;
   for (i = 0; i < 0, 5; i++)
       printf("%d ", i);
   return 0;
}
Formally, the answer for this one is an infinite loop. What is the working of this snippet? How are the conditions getting evaluated?
 
     
     
    