Question: why wont the code work so that the main just calls the sumnum function so that the output is simply the answer which is the

why wont the code work so that the main just calls the sumnum function so that the output is simply the answer which is the result of the 2 numbers in this case 10+1 there are no error messages presented either. if you could provide a solution to this thatd be great thanks.
why wont the code work so that the main just calls the

1#include2usingnamespacestd;345intsumnum(inta,intb)6intresult;7result=a+b;8return(result);9}1011vintmain(){12sumnum(10,1;13f

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!