Some explanations would be great and if you need more images for more context th
ID: 3746576 • Letter: S
Question
Some explanations would be great and if you need more images for more context than I can do that for you
//Problem 1: initializeStrings (5 points) / Use pointer p to traverse the 2D array of characters variable 'strings'(input from user in main() and set all charact dhray to a null terminator so that there is a4row and 35 column 2D array full of null terminators. // The nuLL terminator is represented by the character value '9" and is used to denote the end of a string void initializeStrings (char strings [NUM_STRINGS ][STRING_LENGTH]) char ptr &strings[][0];Explanation / Answer
void initializeStrings(char strings[NUM_STRINGS][STRING_LENGTH) { char *ptr = &strings[0][0]; int i = 0; while(i < 4*35) { *ptr = ''; ptr++; i++; } }Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.