engineering recuitment GATE CSE 2023-24 Test Series Programming and Data Structure Programming in C Pointer
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