R

Ram Sharma • 193.88K Points
Coach

Q. What is the output of C Program with pointers?

Code:
int main()
{
int a=10;
int *p, **q;
p=&a;
q=&p;
printf("%d ", a);
*p=15;
printf("%d ", a);
**q=20;
printf("%d ", a);
return 0;
}
  • (A) 10 10 10
  • (B) 10 0 0
  • (C) 10 15 20
  • (D) Compiler error

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics