Question: Need the code done in C language please :) Write a user defined function called incrementUpdate. The function takes one integer reference called val. The
Need the code done in C language please :)

Write a user defined function called incrementUpdate. The function takes one integer reference called val. The function updates the value stored in val by 1 . The user will be able to update val until the user enters another option. This other option will cause the user defined function to terminate. Display the value stored in val in the main function before and after the call. Inside the main the function, declare and initialize val to 0 . If pointers aren't used, then no credit will be given. Before calling incrementUpdate val = 0 Updating val now... Would you like to update ... Enter 0 if you would like to update again. Anything else will exit the update. Option: 0 val now... Updat ing val now to update ... Would you like to Enter 0 if you would like to update again. Anything else will exit the update. Option: 0 Updat ing val now... Would you like to update ... Enter o if you would like to update again. Anything else will exit the update. Option: Updat ing val now.... Would you like to update .... Enter 0 if you would like to update again. Anything else will exit the update. Option: 0 Updat ing val now.... Would you like to update .... Enter 0 if you would like to update again. Anything else will exit the update. Option: 1 val is now done updating.... After calling incrementUpdate val =5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
