Question: What could be the code (only one 8 points line) in the blank white box below so that the value of the variable 'total'

What could be the code (only one 8 points line) in the

What could be the code (only one 8 points line) in the blank white box below so that the value of the variable 'total' is changed to 100. You can not use the variable 'total' to perform this change. int main() { int marks = 64, *ptr = &marks; int total = 500; } *ptr = 100;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!