Question: 18 Given the following program segment what will be printed out to the screen? void myFoo (int, int *); void main() { int a, b,

18 Given the following program segment what will be printed out to the screen? void myFoo (int, int *); void main() { int a, b, sum; a = 1; b = 2; myFoo(a,&b); sum = a + b; printf("Sum is %d\ ", sum); } /* end function main */ void myFoo(int x, int *y) x = 10; *y = 20; } /* end function myFoo */ O 20 O 21 022 O 30 O undefined K 1 pts

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!