Which of the following is/are true about the output of the below code?

#include

void function(int *y, int *x)

{

y = x;

*x = 2020;

printf("%d %d", *x, *y);

}

int main()

{

int a = 2010, b = 2011;

function(&a,&b);

printf("%d %d", a, b);

return 0;

}

1
*x =  2020
2
*y =  2011
3
a = 2010
4
b = 2020

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation