Q:

Assume the output of the following code:

0

Assume the output of the following code:

void myshow(int *);

void main()
{
   int a=10;
   printf("%d ", a);
   myshow(&a);
   printf("%d", a);
   
}

void myshow(int *k)
{
   *k=20;
}

  1. 10 30
  2. 20 20
  3. 10 10
  4. 10 20

All Answers

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

Correct Answer:

10 20

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