Q:

what will be the output of the following program:

0

what will be the output of the following program:

int main()
{
int i = 10;
int *const p = &i;
foo(&p);
printf("%d\n", *p);
}
void foo(int **p)
{
int j = 11;
*p = &j;
printf("%d\n", **p);
}

  1. 11 12
  2. 11 11
  3. Segment Fault
  4. Error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

11 11

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now
Which of the following are correct syntaxes to sen... >>
<< what will be the output of the following program...