2. Next Destination by CodeChum Admin Yay! Because of your help, we're now at our first destination. However, I do not know what's our next destination huhu I guess being a tour guide is not my forte. Oh wait, I see that there's a signage here pointing to another signage there. Perhaps if we follow the connections, we will know what the next destination is. Instructions: In the code editor, there are three things present: An integer value representing the next destination Pointer #1 which represents the first signage And Pointer #2 which represents the second signage For this problem, you need to do two things: Assign the address of the integer value (or the next_destination) to Pointer #2 Assign the value of Pointer #2 to Pointer #1 Using Pointer #1 and the dereferencing operator, print the value of the next_destination Output Next destination = 20
2. Next Destination
by CodeChum Admin
Yay! Because of your help, we're now at our first destination.
However, I do not know what's our next destination huhu I guess being a tour guide is not my forte. Oh wait, I see that there's a signage here pointing to another signage there. Perhaps if we follow the connections, we will know what the next destination is.
Instructions:
In the code editor, there are three things present:
An integer value representing the next destination
Pointer #1 which represents the first signage
And Pointer #2 which represents the second signage
For this problem, you need to do two things:
Assign the address of the integer value (or the next_destination) to Pointer #2
Assign the value of Pointer #2 to Pointer #1
Using Pointer #1 and the dereferencing operator, print the value of the next_destination
Output
Next destination = 20
Step by step
Solved in 4 steps with 2 images