High School

Consider the following statements:

```c
int *p;
int i, k;
i = 142;
k = i;
p = &i;
```

Which of the following statements changes the value of `i` to 143?

A. `*k = 143;`

B. `p = 143;`

C. `*p = 143;`

D. More than one of these

E. `k = 143;`

F. `*p = 143;`

Answer :

Final answer:

The statement that changes the value of i to 143 is *p = 143;.

Explanation:

The statement that changes the value of i to 143 is *p = 143;.

Let's break it down step by step:

  1. p = &i; assigns the memory address of i to the pointer variable p.
  2. *p = 143; dereferences the pointer p (getting the value at the memory address it points to), and assigns the value 143 to the variable i.

Learn more about Changing value of a variable here:

https://brainly.com/question/2105817

#SPJ11