C - Pointers - Discussion

You Are Here :: Home > C > Pointers - Discussion

 



Q.

What are the values of trouble and *pt after the following program fragment has been executed?

double trouble = 13.13;
double *pt;
pt = &trouble;
*pt = 9.9;

A. trouble is 13.13, *pt is 9.9 B. trouble is 9.9, *pt is 13.13
C. trouble is undefined, *pt is 9.9 D. trouble is 9.9, *pt is 9.9

Answer: Option D
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion