0

arg_to and arg_from are of type char*

  1. while (*(arg_to++) = *(arg_from++));

  2. while ((*arg_to)++ = (*arg_from)++);

Why does the first expression work properly whereas the second one throws the following error:

error: lvalue required as left operand of assignment

Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411

0 Answers0