Computer Science, asked by nmohansuryateja, 9 months ago

if a variable is a pointer to a structure then which of the following operator is used to access data members of the structure through the pointer variable​

Answers

Answered by Amankumar2newton
15

Answer:

To access data members of a structure we have to create a variable if thar variable if normal variable then we will use "."(dot) operator if thar is pointer variablethen we will use "->"arrow operator. Pointer is a address of value.

Answered by steffiaspinno
1

arrow -> operator.

  •  A pointer to structures can be used in the same way, with a pointer variable pointing to the value of an access to various.
  • We employ the unary operation & (ampersand) to access the address of a variables to a pointer, which gives the address of the that variable.
  • The structure pointer is defined as a pointer that points to the location of the main memory that stores a structure.
  • A pointer, as we've seen, is a variable that refers to the location of some other variables of any data type, such as an int, char, or float.
Similar questions