-
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?
-
- f (s,*s)
- i = f (i, s)
- f (i,*s)
- f (i,*p)
- f (s,*s)
Correct Option: D
‘i’ is integer and *P is value of a pointer to short.