) How can the function abcfunc change the contents of the integer variable pointed to by intpoint?

a) It can't

b) By modifying intpoint

c) By dereferencing intpoint with &

d) By derererencing intpoint with *

Respuesta :

Answer:

d) By dereferencing intpoint with *.

Explanation:

When we want to change the value pointed by an pointer.We use dereferencing operator(*).For example:-

int b=89;

int *a=&b;

In these statements the integer a points to the value stored in integer b.

If we directly print a the address of variable b will be printed on the screen.So to print the value we have to derefer it.This can be done as following:-

cout<<*a<<endl;

Output = 89.

We are using dereferencing operator (*) in it.