Question: onsider the following C Program [ GATE CSE 2 0 1 6 ] void f ( int , short ) ; void main ( )

onsider the following C Program [GATE CSE 2016]
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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!