what does this print?

Apr 23, 2022 at 1:04am
1)
void fun(int *p);
void main()
{
int x [100] = {3,2,1};
fun(x);
printf("%d", x[0]);
}
void fun (int *p)
{
*p = 1;
}
Apr 23, 2022 at 1:57am
So, what do you think will be displayed?

After all, this is your test, not ours. You are supposed to figure it out. On your own.
Apr 23, 2022 at 11:27am
what does this print?


I refer to my answer here http://www.cplusplus.com/forum/general/283283/
Topic archived. No new replies allowed.