Question: Modify the program to make it compile. Note that you should not modify or move the existing code. That is, do not modify the code
Modify the program to make it compile. Note that you should not modify or move the existing code. That is, do not modify the code of main() and sum(), and also do not move the functions. Instead, add something to make the program compile. Then, run the program to see the output.
#includeint main() { int a = 2031; greet(a); float x =2.2, y=3.3; float su= sum(x,y); printf( "%f + %f = %f ", x,y, su); return 0; } /* function definition */ float sum (float i, float j){ return i+j; } void greet(int i){ printf("Hello %d! ", i); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
