Card 8 / 15: Considering the following definitions, which of the provided statements (if any), would give the value of x, assuming that x is a double that has been properly defined and initialized to a value? void *pp = &x; double *px=&x; double **ppx=&px;
A)
**ppx
B)
*(static_cast <double*>(pp))
C)
*pp
D)
*(*(&px))
E)
*( (double*)pp)
Answer:
A) **ppx
B) *(static_cast <double*>(pp))
D) *(*(&px))
E) *( (double*)pp)
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
![]() |
Foundations of Software Engineering
Author:
Prof.Kevin AmaratungaProfessor
MIT Massachusetts Institute of Technology
USA
Access: |