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
  • 20,268
  • 62
  • 208
  • 382

0 Answers0