1.

Consider the following C program.

void f(int, short);
void main()
{
  int i = 100;
  short s = 12;
  short *p = &s;
  __________ ;   // call to f()
}

Which one of the following expressions, when placed in the blank above, will NOT result in a type checking error?

A. f(s, *s)
B. i = f(i,s)
C. f(i,*s)
D. f(i,*p)
Answer» E.


Discussion

No Comment Found

Related MCQs