Course Solutions Uncategorized (Solved) : Following Statements C 1 Consider Following Statements Int P Int K 50 K P Statements Follo Q29778900 . . . .

(Solved) : Following Statements C 1 Consider Following Statements Int P Int K 50 K P Statements Follo Q29778900 . . . .

 

The following statements are in C++:

1. Consider the following statements:

int *p;

int i, k;

i = 50;

k = i;

p = &i;

After these statements, which of the following statements willchange the value of i to 15?

a) k = 15;

b) *k = 15;

c) p = 15;

d) *p = 15;

e) Two or more of the answers will change i to 15.

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post