Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write declaration statements for the following: a. The variable pointed to by yA

ID: 3643988 • Letter: W

Question

Write declaration statements for the following: a. The variable pointed to by yAddr is an integer. b. The variable pointed to by chAddr is a character. c. The variable pointed to by ptYr is a long integer. d. The variable pointed to by amt is a double-precision variable. e.The variable pointed to by z is an integer. f. The variable pointed to by qp is a single-precision variable. g.datePt is a pointer to an integer. h. ylAddr is a pointer to a double-precision variable. i. amtPt is a pointer to a single-precision variable. j. ptChr is a pointer to a character variable

Explanation / Answer

int a;
char c;
float f;
double d;
long l;

a. int *yAddr=&a;
b. char *chAddr=&c;
c. long *ptYr=&l;
d. double *amt=&d;
e. int *z=&a;
f. float *qp=&f;
g. int *datePt=&a;
h. double *ylAddr=&d;
i. float *amtPt=&f;
j. char *ptChr=&c;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote