Discussion :: C-MCQs
-
What is the output of this C code?
int main()
{
int i = 10;
int *p = &i;
foo(&p);
printf("%d ", *p);
printf("%d ", *p);
}
void foo(int **const p)
{
int j = 11;
*p = &j;
printf("%d ", **p);
}
Answer : Option B
Explanation :
None.
Be The First To Comment