Answer to Question #214208 in C++ for Aroosha ch

Question #214208

Describe the syntactically way to declare and initialize in a single step a pointer to a previously

declared variables m and b for type float and double?


1
Expert's answer
2021-07-09T03:35:01-0400
float m = 10.700 //Variable m declaration and initialization
float * m = &m; Pointer to variable m declaration and initialization




double b = 10.099887 //Variable b declaration and initialization
double *ptr = &b;  //Pointer to variable b declaration and initialization

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS