Comment by layer8
19 hours ago
The idiomatic
void strcpy(char *s, char *t)
{
while (*s++ = *t++)
;
}
(straight from K&R) wouldn’t work without it.
19 hours ago
The idiomatic
void strcpy(char *s, char *t)
{
while (*s++ = *t++)
;
}
(straight from K&R) wouldn’t work without it.
Which many people find unreadable compared to other versions.
And for several reasons.
And I have seen
in some places!
It is concise syntax but very confusing.