Question: 4. Given the following code snippet: int myfunc(int); int myVar-5; 11 12 13 14 15 16 17 18 HH void main (void) ( 19
4. Given the following code snippet: int myfunc(int); int myVar-5; 11 12 13 14 15 16 17 18 HH void main (void) ( 19 int heckyeah-10, ohyeah; ohyeah-myfunc(heckyeah); } 20 int myfunc(int x) 21 ( 22 23 return(x+myVar); a. What is/are the local parameter(s) of my func? b. What is/are the local variable(s) for main? c. Which function(s) can see/utilize myVar? d. What value(s) is/are returned on line 17?
Step by Step Solution
There are 3 Steps involved in it
Here are the answers to your questions a Local parameters of myfunc x is the local parameter of m... View full answer
Get step-by-step solutions from verified subject matter experts
