Computer Science, asked by rizwanatabasuum1885, 11 months ago

Assume you have declared an array of structures and that ptr is a pointer to the first array element (that is, the first structure in the array). How would you change ptr to point to the second array element? Solution

Answers

Answered by aryan1513
0

Answer:

In this program, we have a pointer ptr that points to the 0th element of the array. Similarly, we can also declare a pointer that can point to whole array instead of only one element of the array. This pointer is useful when talking about multidimensional arrays.

Syntax:

data_type (*var_name)[size_of_array];

Explanation:

In this program, we have a pointer ptr that points to the 0th element of the array. Similarly, we can also declare a pointer that can point to whole array instead of only one element of the array. This pointer is useful when talking about multidimensional arrays.

Syntax:

data_type (*var_name)[size_of_array];

Similar questions