Question: C Program.Thanks! Problem 5: Pointer (20%) Please modify the program below and change the value in each variable in increasing order. Requirement: 1. Should not

 C Program.Thanks! Problem 5: Pointer (20%) Please modify the program belowand change the value in each variable in increasing order. Requirement: 1.

C Program.Thanks!

Problem 5: Pointer (20%) Please modify the program below and change the value in each variable in increasing order. Requirement: 1. Should not modify the existed code. 2. You can only add one function call in the main function. 3. You can only declare at most two functions in the program. 4. The function should not return any value or print any result. 5. The inputs of the function are only relative to a, b and c that declared in main function. 6. Digital number is not allowed to appear in the function definition. #include // add function declaration here with function name "func" int main() { int a, b, c; scanf(" %d %d %d", &a,&b, &c); //add only one function here printf ("a=%d, b=%d, c=%d ", a, b, c); return 0; } // add function definition here Example: Input 381 940 Output a=1, b=3, c=8 a=0, b=4, c=9

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 Databases Questions!