Predict the output of the below program

#includestdio.h
void fun(int *ptr)
{
*ptr=50;
}
int main()
{
int x=20;
fun(&x);
printf("x=%d",x);
return 0;
}


Posted on by