Đ Đức Lưu New member Sep 18, 2021 #1 What will be the output of the following C code? Code: #include<stdio.h> extern inline int min(int a, int b) { return a < b ? a : b; } main() { int m; m=min(3,-5); printf("%d",m); } A. Error B. 3 C. -5 D. Junk value
What will be the output of the following C code? Code: #include<stdio.h> extern inline int min(int a, int b) { return a < b ? a : b; } main() { int m; m=min(3,-5); printf("%d",m); } A. Error B. 3 C. -5 D. Junk value
T Trương Duy Bằng New member Sep 18, 2021 #2 Answer: a Explanation: The above code will result in an error due to the statement: extern inline int min(int a, int b). The keyword ‘extern’ causes an error: undefined reference to min. Upvote 0 Downvote
Answer: a Explanation: The above code will result in an error due to the statement: extern inline int min(int a, int b). The keyword ‘extern’ causes an error: undefined reference to min.