Computer Sciences > Gate 2016 Set-1 > Functions
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)

Correct : Functions

Similar Questions

The following function computes the maximum value contained in an integer array p[] of size n (n >= 1) int max(int *p, int n) {     int a=0, b=n...
#123 MCQ
Consider the following function implemented in C: void printxy(int x, int y) {     int *ptr;     x = 0;     ptr = &x;...
#159 MCQ
Consider the following program: int f(int *p, int n) {     if (n
#545 Fill in the Blanks

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......