Question: C language question: Relation between pointer and array. Please fill in what to put in these two functions, thank you. A pointer is always the
C language question: Relation between pointer and array. Please fill in what to put in these two functions, thank you.





A pointer is always the same size (it only stores a memory address), but an array variable will store the individual elements. The two have very close ties and are occasionally used interchangably because arrays and pointers access individual elements the same way However, you should make sure you understand the difference or you will frequently run into segmentation fault:s For this section, we are going to take a different approach to iterating through an array. We are going to write two functions "findChar" and "nextChar". nextChar-Takes in a char pointer and increments it one char sized space in memory findChar - Using nextChar, increment through the given list until the char stored in toFind is found, then return the matching chars memory address. If no match is found, return NULL
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
