Computer Science, asked by Anonymous, 3 months ago

explain the relationship between pointers and pointers with suitable programming examples

Answers

Answered by ItzMissKomal
0

Answer:

  • The pointer is initialised with the address of object 'obj' of class 'emp' type. Then the pointer 'ptr' is used to invoke function call to the member function 'readdata()' and 'printdata()'using member access operator ->.
Answered by adarshtiwari20172
2

Answer:

Relationship between pointers and array

To access any element of the given array we use array index notation. For example to access zeroth element we use arr[0] , similarly to access fifth element we use arr[4] . ... int * ptr = &arr[0]; The above statement declares an integer pointer pointing at zeroth array element.

Explanation:

hope it helps you and ❣️

please mark me as brainliest ✌️

Similar questions