hop of those help? This should work, and you don't have to add the NUL (not NULL, it's ASCII) at the end because you're treating it as an array of N distinct characters and not as a string. If you wanted to printf it with %s or call strlen on it, then you'd have to add the NUL (and allocate N+1 characters for the array). You should add \n at the end of your printf format string.
2D character array initialization in C
By : user3267744
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further I am trying to build a list of strings that I need to pass to a function expecting char ** , C strings are enclosed in double quotes: