You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*pairs++; might be changed to (*pairs)++;.
Given postfix increment operators have higher precedence than indirection operators, the expression *pairs++; is equivalent to *(pairs++);, accessing the object stored in the next address in memory to pairs, which leads to the compiler issuing a warning "expression result unused", and to the program failing to recognize pairs in the example of "8c/as/7c/ad/3h".
The text was updated successfully, but these errors were encountered:
c-solutions/11/projects/04/4.c
Line 140 in f6206d2
*pairs++;
might be changed to(*pairs)++;
.Given postfix increment operators have higher precedence than indirection operators, the expression
*pairs++;
is equivalent to*(pairs++);
, accessing the object stored in the next address in memory topairs
, which leads to the compiler issuing a warning "expression result unused", and to the program failing to recognize pairs in the example of "8c/as/7c/ad/3h".The text was updated successfully, but these errors were encountered: