GATE CS 2016 Set 1 — Question 13

Multiple choice 1 mark Question 13 2016

Question 13

MCQ 1 marks · −0.33 Programming and Data Structures

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?

Answers and explanations are free — they just need an account.

Where this question comes from

Source: GATE 2016 Computer Science and Information Technology, Set 1, Q13 (set and question number approximate)