On page 106 of K&R C, in strcmp
function, it takes pointers *s
and *t
as arguments but in the for
loop, it specifies
s[i]==t[i]
as a condition.
Just want to confirm, for arrays, as
*(s+i) and s[i]
are synonymous, hence, can the function statement use s[i]
instead of *s
?