what does this print?

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;
}
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.
what does this print?


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