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

Turn in your program along with this document All questions will use the variabl

ID: 3632301 • Letter: T

Question

Turn in your program along with this document
All questions will use the variables that are declared in question 1

1) Declare the following variables
int a
pointer to int b
Float c
pointer to pointer to int d
pointer to void e
pointer to int g

2) Based on the declarations that were made in the previous question, make the necessary corrections to each of the assignments such that they would be both logically and syntactically correct.
b = a
g = a
d = b
e = c
e = a
e = b
g = e


3) (Make sure that you keep in mind the void datatypes)
Based on declarations that were made in question 1, modify the contents of “a” through variable “e” if all the following were true.
e contains the address of d,
d contains the address of b,
b contains the address of a




4) Based on the assignments that were done in the previous question, modify the contents of b through variable “e”




5) Based on the declarations that were made in question 1, modify the contents of “c” through the variable “e” if the following is true
e contains the address of c

Explanation / Answer

here is the statements u need PLEASE RATE //question 1 int a; int *b; float c; int **d; void *e; int *g; // question 2 b=&a; g=&a; d=&b; e=&c; e=&a; e=&b; g=(int *)e; //question 3 e=&a; d=&b; b=&a; *static_cast(e)=6; cout
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