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.

C language question: Relation between pointer and array. Please fill in whatto put in these two functions, thank you. A pointer is alwaysthe 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!