Since I assume that post increment is evaluated first before a relational operator, it will not going inside the second while loop when b=98 under the expression "while (b++ < 99)" in C programming, but it not. The relational operator is evaluted first, then increment. A little bit confusing , so I would ask why it's happened.
#include <unistd.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
void ft_print_comb2(void)
{
int a;
int b;
a = -1;
while (a++ < 98)
{
b = a;
while (b++ < 99)
{
ft_putchar((a / 10) + 48);
ft_putchar((a % 10) + 48);
ft_putchar(' ');
ft_putchar((b / 10) + 48);
ft_putchar((b % 10) + 48);
if (a != 98)
{
ft_putchar(',');
ft_putchar(' ');
}
}
}
}