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.

#include  int 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

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!