Question: 17. The output of the following code is 2 4. Which of the following correctly replaces the missin…

Question:

17. The output of the following code is 2 4. Which of the following correctly replaces the missing lines in the code? #indude void f(int *ptr) { int y = 2; ptr = &y; //line1 } main() { int x = 4, *ptr; ptr = &x; f(8x); Illine2 } 0 Linel: printf(“%d”, *ptr); and Line2: printf(“%d”, *ptr);

Leave a Reply

Scroll to top