Write a statement where a pointer and an indirection operator are used to assign a value to a variable. Write a statement where a data value is accessed by using the indirection operator–pointer combination.

What will be an ideal response?

```
int a, b;
int *p_a;
p_a = &a;
*p_a = 3; // 3 is assigned where p_a is pointing, which is the int a
b = *p_a; // the value that p_a is pointing to is assigned into b
```

Computer Science & Information Technology

You might also like to view...

When the data used to create a chart pasted from Excel into a PowerPoint slide is edited in Excel, the chart in both Excel and PowerPoint reflect the change

Indicate whether the statement is true or false

Computer Science & Information Technology

A picture from a file can be inserted into a document by clicking the Picture button in the ________ group on the Insert tab

Fill in the blank(s) with correct word

Computer Science & Information Technology