Home » C Programming » Pointers

What will be the output of the program? #include int *check(static int, static int); int main() { int *c; c = check(10, 20); printf("%d\n", c); return 0; } int *check(static int i, static int j) { int *p, *q; p = &i; q = &j; if(i >= 45) return (p); else return (q); }

Correct Answer: Error: cannot use static for function parameters

← Previous Question Next Question→

More Questions from Pointers

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion