programming example write program to find whether number is even or odd using functions #include int evenodd(int)//function declaration int main(int numflagprintf("\ enter the number ")scanf("% "&num)flag evenodd(num)//function call if (flag = printf("\ % is even"num)else printf("\ % is odd"num)return int evenodd(int /function header /function body if( % = return else retun output enter the number is even passing parameters to functions there are two ways in which arguments or parameters can be passed to the called function call by value the values of the variables are passed by the calling function to the called function call by reference the addresses of the variables are passed by the calling function to the called function call by value in this methodthe called function creates new variables to store the value of the arguments passed to it thereforethe called function uses copy of the actual arguments to perform its intended task if the called function is supposed to modify the value of the parameters passed to itthen the change will be reflected only in the called function in the calling functionno change will be made to the value of the variables this is because all the changes are made to the copy of the variables and not to the actual variables to understand this conceptconsider the code given below the function add(accepts an integer variable num and adds to it in the calling functionthe value of num in add()the value of num is modified to but in the calling functionthe change is not reflected #include void add(int )int main(int num printf("\ the value of num before calling the function % "num)add(num)