An array "decays" into a pointer to its first element, so scanf("%s", string) is equivalent ... Nested Loops C programming - I need to scan input to find sets of letters.
stackoverflow.com