Indoor European. I know #regex. I write #code (in #C or #Haskell or #Perl or #JavaScript or #bash).

  • 0 Posts
  • 4 Comments
Joined 2 years ago
cake
Cake day: November 6th, 2022

help-circle
  • @racketlauncher831 As far as the C compiler is concerned, there is literally no difference between those two notations. If you declare a function parameter as an array (of T), the C compiler automatically strips the size information (if any) and changes the type to pointer (to T).

    (And if we’re talking humans, then char *args[] does not mean “follow this address to find a list of characters” because that’s the syntax for “array of pointers”, not “pointer to array”.)